aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/ncftp/main.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-12-24 01:01:48 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-12-24 01:01:48 +0000
commit9b786fc227877597fd802e51e7f2e7cc25849685 (patch)
tree3f2632c3d965e0d55b021b32bf8c8bee171a2249 /usr.bin/ncftp/main.c
parent5d9b1b20cbb0bf76d66eaef20b9d67e57b0ebae1 (diff)
downloadsrc-9b786fc227877597fd802e51e7f2e7cc25849685.tar.gz
src-9b786fc227877597fd802e51e7f2e7cc25849685.zip
Notes
Notes: svn path=/vendor/ncftp/dist/; revision=5216 svn path=/vendor/ncftp/1.9.0/; revision=5218; tag=vendor/ncftp/1.9.0
Diffstat (limited to 'usr.bin/ncftp/main.c')
-rw-r--r--usr.bin/ncftp/main.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ncftp/main.c b/usr.bin/ncftp/main.c
index 9fdfc06ec0a5..1d1ed62de147 100644
--- a/usr.bin/ncftp/main.c
+++ b/usr.bin/ncftp/main.c
@@ -2,7 +2,7 @@
#define _main_c_
-#define FTP_VERSION "1.8.7 (December 11, 1994)"
+#define FTP_VERSION "1.9.0 (December 22, 1994)"
/* #define BETA 1 */ /* If defined, it prints a little warning message. */
@@ -46,7 +46,9 @@ int toatty; /* output is to a terminal */
int doing_script; /* is a file being <redirected to me? */
char *altarg; /* argv[1] with no shell-like preprocessing */
struct servent serv; /* service spec for tcp/ftp */
+static char pad2a[8] = "Pad 2a"; /* SunOS overwrites jmp_bufs... */
jmp_buf toplevel; /* non-local goto stuff for cmd scanner */
+static char pad2b[8] = "Pad 2b";
char *line; /* input line buffer */
char *stringbase; /* current scan point in line buffer */
char *argbuf; /* argument storage buffer */
@@ -391,7 +393,7 @@ For testing purposes only. Do not re-distribute or subject to novice users."
(void) Signal(SIGPIPE, lostpeer);
}
for (;;) {
- if (cmdscanner(top))
+ if (cmdscanner(top) && !fromatty)
exit(1);
top = 1;
}