diff options
author | 1997-08-25 21:41:55 +0000 | |
---|---|---|
committer | 1997-08-25 21:41:55 +0000 | |
commit | 3d4e6056b8748c5f356c6e6d7b885d43ca68aaba (patch) | |
tree | 75e00f24724ee32f540a67f548f3ae1aa5f1fb23 | |
parent | Explicately pass -host flag to route(8) to avoid confusion with networks. (diff) | |
download | wireguard-openbsd-3d4e6056b8748c5f356c6e6d7b885d43ca68aaba.tar.xz wireguard-openbsd-3d4e6056b8748c5f356c6e6d7b885d43ca68aaba.zip |
dumb fix for dumb users-- ftp's mget now idiot-proofs input!
-rw-r--r-- | usr.bin/ftp/util.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/usr.bin/ftp/util.c b/usr.bin/ftp/util.c index eac3961b521..2166786757e 100644 --- a/usr.bin/ftp/util.c +++ b/usr.bin/ftp/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.11 1997/07/25 21:56:23 millert Exp $ */ +/* $OpenBSD: util.c,v 1.12 1997/08/25 21:41:55 jkatz Exp $ */ /* $NetBSD: util.c,v 1.11 1997/07/21 14:03:49 lukem Exp $ */ /* @@ -35,7 +35,7 @@ */ #ifndef lint -static char rcsid[] = "$OpenBSD: util.c,v 1.11 1997/07/25 21:56:23 millert Exp $"; +static char rcsid[] = "$OpenBSD: util.c,v 1.12 1997/08/25 21:41:55 jkatz Exp $"; #endif /* not lint */ /* @@ -438,6 +438,15 @@ confirm(cmd, file) confirmrest = 1; fprintf(ttyout, "Prompting off for duration of %s.\n", cmd); break; + case 'y': + return(1); + break; + default: + fprintf(ttyout, "n, y, p, a, are the only acceptable commands!\n"); + fprintf(ttyout, "%s %s? ", cmd, file); + fgets(line, sizeof(line), stdin); + confirm(cmd, file); + break; } return (1); } |