From 2d959740ea5139fdea75dbae8d902f509581b79b Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Sat, 13 Aug 2005 21:33:42 +0000 Subject: fix --- sshfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]); -- cgit v1.2.3