diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-08-13 21:33:42 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-08-13 21:33:42 +0000 |
commit | 2d959740ea5139fdea75dbae8d902f509581b79b (patch) | |
tree | bcf6ebef2a70d9054d23191b25be9e2e4c763e0f | |
parent | 28495b3bb29df1ae87967f208d008182a794f37e (diff) | |
download | sshfs-2d959740ea5139fdea75dbae8d902f509581b79b.tar sshfs-2d959740ea5139fdea75dbae8d902f509581b79b.tar.gz sshfs-2d959740ea5139fdea75dbae8d902f509581b79b.tar.bz2 sshfs-2d959740ea5139fdea75dbae8d902f509581b79b.zip |
fix
-rw-r--r-- | sshfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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]); |