aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-08-13 21:33:42 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-08-13 21:33:42 +0000
commit2d959740ea5139fdea75dbae8d902f509581b79b (patch)
treebcf6ebef2a70d9054d23191b25be9e2e4c763e0f
parent28495b3bb29df1ae87967f208d008182a794f37e (diff)
downloadsshfs-2d959740ea5139fdea75dbae8d902f509581b79b.tar
sshfs-2d959740ea5139fdea75dbae8d902f509581b79b.tar.gz
sshfs-2d959740ea5139fdea75dbae8d902f509581b79b.tar.bz2
sshfs-2d959740ea5139fdea75dbae8d902f509581b79b.zip
fix
-rw-r--r--sshfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshfs.c b/sshfs.c
index f7f57fc..b20b684 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -569,9 +569,10 @@ static int start_ssh(char *host)
perror("failed to redirect input/output");
_exit(1);
}
- if (devnull != -1)
+ if (!debug && devnull != -1)
dup2(devnull, 2);
+ close(devnull);
close(inpipe[0]);
close(inpipe[1]);
close(outpipe[0]);