summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--scp.c4
2 files changed, 9 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index c5590c032..14a5deace 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -26,6 +26,12 @@
26 return error from do_upload() when a write fails. fixes bz#1252: zero 26 return error from do_upload() when a write fails. fixes bz#1252: zero
27 exit status from sftp when uploading to a full device. report from 27 exit status from sftp when uploading to a full device. report from
28 jirkat AT atlas.cz; ok dtucker@ 28 jirkat AT atlas.cz; ok dtucker@
29 - djm@cvs.openbsd.org 2007/01/22 13:06:21
30 [scp.c]
31 fix detection of whether we should show progress meter or not: scp
32 tested isatty(stderr) but wrote the progress meter to stdout. This patch
33 makes it test stdout. bz#1265 reported by junkmail AT bitsculpture.com;
34 of dtucker@
29 35
3020070128 3620070128
31 - (djm) [channels.c serverloop.c] Fix so-called "hang on exit" (bz #52) 37 - (djm) [channels.c serverloop.c] Fix so-called "hang on exit" (bz #52)
@@ -2721,4 +2727,4 @@
2721 OpenServer 6 and add osr5bigcrypt support so when someone migrates 2727 OpenServer 6 and add osr5bigcrypt support so when someone migrates
2722 passwords between UnixWare and OpenServer they will still work. OK dtucker@ 2728 passwords between UnixWare and OpenServer they will still work. OK dtucker@
2723 2729
2724$Id: ChangeLog,v 1.4614 2007/02/19 11:13:39 dtucker Exp $ 2730$Id: ChangeLog,v 1.4615 2007/02/19 11:14:11 dtucker Exp $
diff --git a/scp.c b/scp.c
index 56a3e79ff..a52aaeb12 100644
--- a/scp.c
+++ b/scp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: scp.c,v 1.155 2006/08/03 03:34:42 deraadt Exp $ */ 1/* $OpenBSD: scp.c,v 1.156 2007/01/22 13:06:21 djm Exp $ */
2/* 2/*
3 * scp - secure remote copy. This is basically patched BSD rcp which 3 * scp - secure remote copy. This is basically patched BSD rcp which
4 * uses ssh to do the data transfer (instead of using rcmd). 4 * uses ssh to do the data transfer (instead of using rcmd).
@@ -380,7 +380,7 @@ main(int argc, char **argv)
380 if ((pwd = getpwuid(userid = getuid())) == NULL) 380 if ((pwd = getpwuid(userid = getuid())) == NULL)
381 fatal("unknown user %u", (u_int) userid); 381 fatal("unknown user %u", (u_int) userid);
382 382
383 if (!isatty(STDERR_FILENO)) 383 if (!isatty(STDOUT_FILENO))
384 showprogress = 0; 384 showprogress = 0;
385 385
386 remin = STDIN_FILENO; 386 remin = STDIN_FILENO;