diff options
Diffstat (limited to 'src/libenvexec/envdir_noclamp.c')
-rw-r--r-- | src/libenvexec/envdir_noclamp.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libenvexec/envdir_noclamp.c b/src/libenvexec/envdir_noclamp.c index 0741c9d..f0e6796 100644 --- a/src/libenvexec/envdir_noclamp.c +++ b/src/libenvexec/envdir_noclamp.c @@ -93,11 +93,7 @@ int envdir_internal_noclamp (char const *path, stralloc *modifs, unsigned int op errfd: fd_close(fd) ; err: - { - int e = errno ; - dir_close(dir) ; - if (wasnull) stralloc_free(modifs) ; else modifs->len = modifbase ; - errno = e ; - return -1 ; - } + dir_close(dir) ; + if (wasnull) stralloc_free(modifs) ; else modifs->len = modifbase ; + return -1 ; } |