diff options
author | Damien Miller <djm@cvs.openbsd.org> | 2007-01-22 13:06:22 +0000 |
---|---|---|
committer | Damien Miller <djm@cvs.openbsd.org> | 2007-01-22 13:06:22 +0000 |
commit | 20cd35a890ad350ad44a70d24d96b82c3db94085 (patch) | |
tree | d11d9569f221c75d8239955fb97ffecb710830ad /usr.bin | |
parent | cf800063d6b93ddeb27e7e68f7172a338a7a0e21 (diff) |
fix detection of whether we should show progress meter or not: scp
tested isatty(stderr) but wrote the progress meter to stdout. This patch
makes it test stdout. bz#1265 reported by junkmail AT bitsculpture.com;
of dtucker@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/scp.c b/usr.bin/ssh/scp.c index d0751729070..6e8bb748498 100644 --- a/usr.bin/ssh/scp.c +++ b/usr.bin/ssh/scp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scp.c,v 1.155 2006/08/03 03:34:42 deraadt Exp $ */ +/* $OpenBSD: scp.c,v 1.156 2007/01/22 13:06:21 djm Exp $ */ /* * scp - secure remote copy. This is basically patched BSD rcp which * uses ssh to do the data transfer (instead of using rcmd). @@ -367,7 +367,7 @@ main(int argc, char **argv) if ((pwd = getpwuid(userid = getuid())) == NULL) fatal("unknown user %u", (u_int) userid); - if (!isatty(STDERR_FILENO)) + if (!isatty(STDOUT_FILENO)) showprogress = 0; remin = STDIN_FILENO; |