diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2023-02-09 15:03:45 +0000 |
---|---|---|
committer | Laurent Bercot <ska@appnovation.com> | 2023-02-09 15:03:45 +0000 |
commit | a10514072f27ff9f4a6ab308b3bccfd4628ef2aa (patch) | |
tree | 66f21986111030114b7fc1a6c15e3a1bce247f49 /src/libenvexec/envdir_noclamp.c | |
parent | 4b6f3cf8a8665a17df45518013a15819791ce2bf (diff) | |
download | skalibs-a10514072f27ff9f4a6ab308b3bccfd4628ef2aa.tar.xz |
Add sals, several refactors
Signed-off-by: Laurent Bercot <ska@appnovation.com>
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 ; } |