summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-08-06 21:17:12 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-08-06 21:17:12 +0000
commit2772a3f8643d085b78110afdd1b84296c04baca9 (patch)
tree2e9de5025d90058e491653e3462f9235953b0072
parent711b04a56a7cf587131ae1910d243207062086ec (diff)
- deraadt@cvs.openbsd.org 2001/07/27 17:26:16
[scp.c] shorten lines
-rw-r--r--ChangeLog5
-rw-r--r--scp.c11
2 files changed, 11 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index eab49e844..af21b0870 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -49,6 +49,9 @@
49 [ssh.c] 49 [ssh.c]
50 If smart card support is compiled in and a smart card is being used 50 If smart card support is compiled in and a smart card is being used
51 for authentication, make it the first method used. markus@ OK 51 for authentication, make it the first method used. markus@ OK
52 - deraadt@cvs.openbsd.org 2001/07/27 17:26:16
53 [scp.c]
54 shorten lines
52 55
5320010803 5620010803
54 - (djm) Fix interrupted read in entropy gatherer. Spotted by markus@ on 57 - (djm) Fix interrupted read in entropy gatherer. Spotted by markus@ on
@@ -6159,4 +6162,4 @@
6159 - Wrote replacements for strlcpy and mkdtemp 6162 - Wrote replacements for strlcpy and mkdtemp
6160 - Released 1.0pre1 6163 - Released 1.0pre1
6161 6164
6162$Id: ChangeLog,v 1.1439 2001/08/06 21:12:42 mouring Exp $ 6165$Id: ChangeLog,v 1.1440 2001/08/06 21:17:12 mouring Exp $
diff --git a/scp.c b/scp.c
index daa3f9909..71fa299db 100644
--- a/scp.c
+++ b/scp.c
@@ -75,7 +75,7 @@
75 */ 75 */
76 76
77#include "includes.h" 77#include "includes.h"
78RCSID("$OpenBSD: scp.c,v 1.77 2001/07/18 16:45:52 mouring Exp $"); 78RCSID("$OpenBSD: scp.c,v 1.78 2001/07/27 17:26:16 deraadt Exp $");
79 79
80#include "xmalloc.h" 80#include "xmalloc.h"
81#include "atomicio.h" 81#include "atomicio.h"
@@ -143,8 +143,10 @@ do_cmd(char *host, char *remuser, char *cmd, int *fdin, int *fdout, int argc)
143 int pin[2], pout[2], reserved[2]; 143 int pin[2], pout[2], reserved[2];
144 144
145 if (verbose_mode) 145 if (verbose_mode)
146 fprintf(stderr, "Executing: program %s host %s, user %s, command %s\n", 146 fprintf(stderr,
147 ssh_program, host, remuser ? remuser : "(unspecified)", cmd); 147 "Executing: program %s host %s, user %s, command %s\n",
148 ssh_program, host,
149 remuser ? remuser : "(unspecified)", cmd);
148 150
149 /* 151 /*
150 * Reserve two descriptors so that the real pipes won't get 152 * Reserve two descriptors so that the real pipes won't get
@@ -830,7 +832,8 @@ bad: run_err("%s: %s", np, strerror(errno));
830 count += amt; 832 count += amt;
831 do { 833 do {
832 j = read(remin, cp, amt); 834 j = read(remin, cp, amt);
833 if (j == -1 && (errno == EINTR || errno == EAGAIN)) { 835 if (j == -1 && (errno == EINTR ||
836 errno == EAGAIN)) {
834 continue; 837 continue;
835 } else if (j <= 0) { 838 } else if (j <= 0) {
836 run_err("%s", j ? strerror(errno) : 839 run_err("%s", j ? strerror(errno) :