diff options
Diffstat (limited to 'src/libstddjb/absolutepath_tmp.c')
-rw-r--r-- | src/libstddjb/absolutepath_tmp.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstddjb/absolutepath_tmp.c b/src/libstddjb/absolutepath_tmp.c index 3d3c2b1..b0e1e07 100644 --- a/src/libstddjb/absolutepath_tmp.c +++ b/src/libstddjb/absolutepath_tmp.c @@ -1,5 +1,7 @@ /* ISC license. */ +/* MT-unsafe (because of chdir) */ + #include <sys/types.h> #include <unistd.h> #include <errno.h> @@ -52,7 +54,7 @@ int sarealpath_tmp (stralloc *sa, char const *path, stralloc *tmp) err: { - register int e = errno ; + int e = errno ; tmp->len = tmpbase ; fd_chdir(fdhere) ; fd_close(fdhere) ; |