diff options
author | Volker Lendecke <vl@samba.org> | 2008-10-05 20:47:00 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-10-05 22:15:40 +0200 |
commit | 1a228b442e9382167872fb863529001ac71d7567 (patch) | |
tree | b528951019bf2d0b68b1f87b46ece1e70768850c /source4/smb_server | |
parent | 9542b2fe60482382459d387294fb92c182f35d64 (diff) | |
download | samba-1a228b442e9382167872fb863529001ac71d7567.tar.gz samba-1a228b442e9382167872fb863529001ac71d7567.tar.bz2 samba-1a228b442e9382167872fb863529001ac71d7567.zip |
smbd3 is unhappy if stderr is not open
Diffstat (limited to 'source4/smb_server')
-rw-r--r-- | source4/smb_server/smb_samba3.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/smb_server/smb_samba3.c b/source4/smb_server/smb_samba3.c index 7b3229892f..259d29039d 100644 --- a/source4/smb_server/smb_samba3.c +++ b/source4/smb_server/smb_samba3.c @@ -52,7 +52,8 @@ static void samba3_smb_accept(struct stream_connection *conn) close(1); dup2(fd, 0); dup2(fd, 1); - for (i=2;i<256;i++) { + dup2(fd, 2); + for (i=3;i<256;i++) { close(i); } |