diff options
author | Jeremy Allison <jra@samba.org> | 2000-10-28 19:30:21 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-10-28 19:30:21 +0000 |
commit | 234792321c07aa59103fb7502534e6dba0ca4c08 (patch) | |
tree | 355cd741d17aad036f2511b5120bf50783feae31 /source3 | |
parent | 2e62e34fe4db2603b409c48c10d5a1d0fb173618 (diff) | |
download | samba-234792321c07aa59103fb7502534e6dba0ca4c08.tar.gz samba-234792321c07aa59103fb7502534e6dba0ca4c08.tar.bz2 samba-234792321c07aa59103fb7502534e6dba0ca4c08.zip |
Fixed silly bug in dup2 code found by Kenichi Okuyama@Tokyo Research Lab. IBM-Japan. Co. Jp.
Jeremy.
(This used to be commit 9c2272e056aef741c4b86f9a247c3534944d9eff)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/lib/smbrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/smbrun.c b/source3/lib/smbrun.c index 0642c30a75..5b05c64bf0 100644 --- a/source3/lib/smbrun.c +++ b/source3/lib/smbrun.c @@ -58,7 +58,7 @@ static BOOL setup_stdout_file(char *outfile,BOOL shared) if (fd == -1) return False; if (fd != 1) { - if (dup2(fd,1) != 0) { + if (dup2(fd,1) != 1) { DEBUG(2,("Failed to create stdout file descriptor\n")); close(fd); return False; |