diff options
author | Nicholas Jones <carpaski@gentoo.org> | 2004-04-14 01:47:36 +0000 |
---|---|---|
committer | Nicholas Jones <carpaski@gentoo.org> | 2004-04-14 01:47:36 +0000 |
commit | 0cef5e0e63ef62f2281f6e0114f7e41baa745fb8 (patch) | |
tree | 3b9f2767e5a1aa706cdf7f37ca4cd34a8839405c /src | |
parent | document {do,new}{init,conf,env}d functions (diff) | |
download | portage-cvs-0cef5e0e63ef62f2281f6e0114f7e41baa745fb8.tar.gz portage-cvs-0cef5e0e63ef62f2281f6e0114f7e41baa745fb8.tar.bz2 portage-cvs-0cef5e0e63ef62f2281f6e0114f7e41baa745fb8.zip |
Lots of little updates and fixes. See the changelog...
portage-2.0.51_pre3
Diffstat (limited to 'src')
-rw-r--r-- | src/sandbox-1.1/libsandbox.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sandbox-1.1/libsandbox.c b/src/sandbox-1.1/libsandbox.c index 6cfa0ae..ec70404 100644 --- a/src/sandbox-1.1/libsandbox.c +++ b/src/sandbox-1.1/libsandbox.c @@ -25,7 +25,7 @@ * as some of the InstallWatch code was used. * * - * $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/src/sandbox-1.1/Attic/libsandbox.c,v 1.18 2004/04/12 00:27:51 carpaski Exp $ + * $Header: /local/data/ulm/cvs/history/var/cvsroot/gentoo-src/portage/src/sandbox-1.1/Attic/libsandbox.c,v 1.19 2004/04/14 01:47:36 carpaski Exp $ * */ @@ -468,7 +468,7 @@ int mkdir(const char *pathname, mode_t mode) // returns 0 success, or -1 if an error occurred { - int result = -1; + int result = -1, my_errno = errno; char canonic[SB_PATH_MAX]; struct stat st; @@ -479,6 +479,7 @@ mkdir(const char *pathname, mode_t mode) errno = EEXIST; return -1; } + errno = my_errno; if FUNCTION_SANDBOX_SAFE ("mkdir", canonic) { |