summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sftp.c b/sftp.c
index 4002304ec..f01c9194c 100644
--- a/sftp.c
+++ b/sftp.c
@@ -16,7 +16,7 @@
16 16
17#include "includes.h" 17#include "includes.h"
18 18
19RCSID("$OpenBSD: sftp.c,v 1.55 2004/06/25 23:21:38 djm Exp $"); 19RCSID("$OpenBSD: sftp.c,v 1.56 2004/07/11 17:48:47 deraadt Exp $");
20 20
21#include "buffer.h" 21#include "buffer.h"
22#include "xmalloc.h" 22#include "xmalloc.h"
@@ -1328,8 +1328,8 @@ connect_to_server(char *path, char **args, int *in, int *out)
1328 1328
1329 /* 1329 /*
1330 * The underlying ssh is in the same process group, so we must 1330 * The underlying ssh is in the same process group, so we must
1331 * ignore SIGINT if we want to gracefully abort commands, 1331 * ignore SIGINT if we want to gracefully abort commands,
1332 * otherwise the signal will make it to the ssh process and 1332 * otherwise the signal will make it to the ssh process and
1333 * kill it too 1333 * kill it too
1334 */ 1334 */
1335 signal(SIGINT, SIG_IGN); 1335 signal(SIGINT, SIG_IGN);
@@ -1415,7 +1415,7 @@ main(int argc, char **argv)
1415 fatal("Batch file already specified."); 1415 fatal("Batch file already specified.");
1416 1416
1417 /* Allow "-" as stdin */ 1417 /* Allow "-" as stdin */
1418 if (strcmp(optarg, "-") != 0 && 1418 if (strcmp(optarg, "-") != 0 &&
1419 (infile = fopen(optarg, "r")) == NULL) 1419 (infile = fopen(optarg, "r")) == NULL)
1420 fatal("%s (%s).", strerror(errno), optarg); 1420 fatal("%s (%s).", strerror(errno), optarg);
1421 showprogress = 0; 1421 showprogress = 0;