1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

smbd3 is unhappy if stderr is not open

This commit is contained in:
Volker Lendecke 2008-10-05 20:47:00 +02:00
parent 9542b2fe60
commit 1a228b442e

View File

@ -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);
}