aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2025-12-24 20:23:44 +0000
committerLaurent Bercot <ska-skaware@skarnet.org>2025-12-24 20:23:44 +0000
commite901a22ccac063b7c3b103ab8a3a56f7c01f2ae6 (patch)
tree13422a604faa2b9c2489918ca6d66f3ca6db8ebc /src
parent4c8ba9fe44be4152aa6725ba0a30fbf5a3b967a9 (diff)
downloadskalibs-e901a22ccac063b7c3b103ab8a3a56f7c01f2ae6.tar.gz
With the correct meaning for nochomp
Diffstat (limited to 'src')
-rw-r--r--src/libenvexec/env_dump4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libenvexec/env_dump4.c b/src/libenvexec/env_dump4.c
index f972e59..f5c9c6a 100644
--- a/src/libenvexec/env_dump4.c
+++ b/src/libenvexec/env_dump4.c
@@ -40,8 +40,8 @@ int env_dump4 (char const *dir, mode_t mode, char const *const *envp, int nochom
char fn[len + 1] ;
memcpy(fn, *envp, len) ;
fn[len] = 0 ;
- len = openwritevnclose_at(fd, fn, v, 1 + !!nochomp) ;
- if (len < vallen + !!nochomp) goto cerr ;
+ len = openwritevnclose_at(fd, fn, v, 1 + !nochomp) ;
+ if (len < vallen + !nochomp) goto cerr ;
}
fd_close(fd) ;
if (chmod(tmpdir, mode) == -1) goto err ;