summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-03-14 05:03:46 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-03-14 05:03:46 +0000
commit2619c4c4532a4d864fb1ca726290a4181e754cc3 (patch)
treeb06257ad08d310d58a936d35fb10baefb5821db2
parent1e56142f89dd7f340eec7460e4de51d43f815bf8 (diff)
Change an occurrence of if (fromatty) -> if (edit) -- from Thorsten.
-rw-r--r--usr.bin/ftp/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ftp/main.c b/usr.bin/ftp/main.c
index 4c720d1e822..4f49e13c585 100644
--- a/usr.bin/ftp/main.c
+++ b/usr.bin/ftp/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.22 1997/03/14 04:32:17 millert Exp $ */
+/* $OpenBSD: main.c,v 1.23 1997/03/14 05:03:45 millert Exp $ */
/* $NetBSD: main.c,v 1.18 1997/03/13 06:23:19 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.22 1997/03/14 04:32:17 millert Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.23 1997/03/14 05:03:45 millert Exp $";
#endif
#endif /* not lint */
@@ -199,7 +199,7 @@ main(argc, argv)
}
#ifndef SMALLFTP
- if (fromatty) {
+ if (editing) {
el = el_init(__progname, stdin, stdout); /* init editline */
hist = history_init(); /* init the builtin history */