summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-10-05 20:47:00 +0200
committerVolker Lendecke <vl@samba.org>2008-10-05 22:15:40 +0200
commit1a228b442e9382167872fb863529001ac71d7567 (patch)
treeb528951019bf2d0b68b1f87b46ece1e70768850c
parent9542b2fe60482382459d387294fb92c182f35d64 (diff)
downloadsamba-1a228b442e9382167872fb863529001ac71d7567.tar.gz
samba-1a228b442e9382167872fb863529001ac71d7567.tar.bz2
samba-1a228b442e9382167872fb863529001ac71d7567.zip
smbd3 is unhappy if stderr is not open
-rw-r--r--source4/smb_server/smb_samba3.c3
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);
}