summaryrefslogtreecommitdiff
path: root/usr.bin/ftp/util.c
diff options
context:
space:
mode:
authorjkatz <jkatz@cvs.openbsd.org>1997-08-25 21:41:56 +0000
committerjkatz <jkatz@cvs.openbsd.org>1997-08-25 21:41:56 +0000
commiteafdcd9805f3e865314346810df0240c36225a47 (patch)
treeed4cf728b98be60729df0d4397123124b7606f71 /usr.bin/ftp/util.c
parent013266990ca470da7c5883aa505bab733928503a (diff)
dumb fix for dumb users-- ftp's mget now idiot-proofs input!
Diffstat (limited to 'usr.bin/ftp/util.c')
-rw-r--r--usr.bin/ftp/util.c13
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);
}