summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2006-03-26 13:49:43 +1100
committerDamien Miller <djm@mindrot.org>2006-03-26 13:49:43 +1100
commit745570cd7991f2a47649b414084496128326f5d3 (patch)
tree9805252b7c76cc98127a5482404c735dba17e22f
parentcb314828eb11b3827a096d9b4abcd8d229764a46 (diff)
- biorn@cvs.openbsd.org 2006/03/16 10:31:45
[scp.c] Try to display errormessage even if remout == -1 ok djm@, markus@
-rw-r--r--ChangeLog6
-rw-r--r--scp.c18
2 files changed, 14 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index 0cde74e8e..db58bb147 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,10 @@
4 [ssh-keygen.c] 4 [ssh-keygen.c]
5 if no key file are given when printing the DNS host record, use the 5 if no key file are given when printing the DNS host record, use the
6 host key file(s) as default. ok djm@ 6 host key file(s) as default. ok djm@
7 - biorn@cvs.openbsd.org 2006/03/16 10:31:45
8 [scp.c]
9 Try to display errormessage even if remout == -1
10 ok djm@, markus@
7 11
820060325 1220060325
9 - OpenBSD CVS Sync 13 - OpenBSD CVS Sync
@@ -4261,4 +4265,4 @@
4261 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4265 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4262 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4266 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4263 4267
4264$Id: ChangeLog,v 1.4242 2006/03/26 02:48:01 djm Exp $ 4268$Id: ChangeLog,v 1.4243 2006/03/26 02:49:43 djm Exp $
diff --git a/scp.c b/scp.c
index 43fd50c9e..bf9db97cf 100644
--- a/scp.c
+++ b/scp.c
@@ -1106,15 +1106,15 @@ run_err(const char *fmt,...)
1106 va_list ap; 1106 va_list ap;
1107 1107
1108 ++errs; 1108 ++errs;
1109 if (fp == NULL && !(fp = fdopen(remout, "w"))) 1109 if (fp != NULL || (remout != -1 && (fp = fdopen(remout, "w")))) {
1110 return; 1110 (void) fprintf(fp, "%c", 0x01);
1111 (void) fprintf(fp, "%c", 0x01); 1111 (void) fprintf(fp, "scp: ");
1112 (void) fprintf(fp, "scp: "); 1112 va_start(ap, fmt);
1113 va_start(ap, fmt); 1113 (void) vfprintf(fp, fmt, ap);
1114 (void) vfprintf(fp, fmt, ap); 1114 va_end(ap);
1115 va_end(ap); 1115 (void) fprintf(fp, "\n");
1116 (void) fprintf(fp, "\n"); 1116 (void) fflush(fp);
1117 (void) fflush(fp); 1117 }
1118 1118
1119 if (!iamremote) { 1119 if (!iamremote) {
1120 va_start(ap, fmt); 1120 va_start(ap, fmt);