summaryrefslogtreecommitdiff
path: root/src/libenvexec/envdir_clamp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libenvexec/envdir_clamp.c')
-rw-r--r--src/libenvexec/envdir_clamp.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/libenvexec/envdir_clamp.c b/src/libenvexec/envdir_clamp.c
index b63ed97..092ede1 100644
--- a/src/libenvexec/envdir_clamp.c
+++ b/src/libenvexec/envdir_clamp.c
@@ -75,11 +75,7 @@ int envdir_internal_clamp (char const *path, stralloc *modifs, unsigned int opti
return n ;
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 ;
}