diff options
Diffstat (limited to 'Src/Modules')
-rw-r--r-- | Src/Modules/zftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Modules/zftp.c b/Src/Modules/zftp.c index b31c522b4..c507a85ce 100644 --- a/Src/Modules/zftp.c +++ b/Src/Modules/zftp.c @@ -1918,7 +1918,7 @@ zftp_open(char *name, char **args, int flags) */ if (zfstatfd == -1) { fname = gettempname(); - zfstatfd = open(fname, O_RDWR|O_CREAT, 0600); + zfstatfd = open(fname, O_RDWR|O_CREAT|O_EXCL, 0600); DPUTS(zfstatfd == -1, "zfstatfd not created"); #if defined(F_SETFD) && defined(FD_CLOEXEC) /* If the shell execs a program, we don't want this fd left open. */ |