diff options
author | 1997-04-01 21:19:05 +0000 | |
---|---|---|
committer | 1997-04-01 21:19:05 +0000 | |
commit | 2b15f7cafdbee9f00ad4c65759be2f2b5146bd38 (patch) | |
tree | e89cf91e93c465a9fde8a4f578118af4ae74f100 | |
parent | Check in some changes hiding in my tree. (diff) | |
download | wireguard-openbsd-2b15f7cafdbee9f00ad4c65759be2f2b5146bd38.tar.xz wireguard-openbsd-2b15f7cafdbee9f00ad4c65759be2f2b5146bd38.zip |
Disable editing when in batch mode. Idea from Theo.
This makes ``ftp ftp://some.place.com/some/file &'' work.
-rw-r--r-- | usr.bin/ftp/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c index 9ba6afcb3b2..6183c74a94a 100644 --- a/usr.bin/ftp/main.c +++ b/usr.bin/ftp/main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: main.c,v 1.25 1997/03/21 20:59:30 millert Exp $ */ +/* $OpenBSD: main.c,v 1.26 1997/04/01 21:19:05 millert Exp $ */ /* $NetBSD: main.c,v 1.20 1997/03/16 14:24:21 lukem Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)main.c 8.6 (Berkeley) 10/9/94"; #else -static char rcsid[] = "$OpenBSD: main.c,v 1.25 1997/03/21 20:59:30 millert Exp $"; +static char rcsid[] = "$OpenBSD: main.c,v 1.26 1997/04/01 21:19:05 millert Exp $"; #endif #endif /* not lint */ @@ -199,6 +199,8 @@ main(argc, argv) } #ifndef SMALL + if (argc > 0) /* batch mode */ + editing = 0; if (editing) { el = el_init(__progname, stdin, stdout); /* init editline */ |