From c297d9d02d70d92d7302421980c4307ffe618cab Mon Sep 17 00:00:00 2001 From: jtc Date: Tue, 16 Nov 1993 23:16:49 +0000 Subject: [PATCH] Check user's response against both 'Y' and 'y' --- this is really supposed to be a locale specific regular expression. This change hard codes POSIX locale behavior, and will be replaced by a locale independant equivalent as soon as locales are fully implemented. --- bin/rm/rm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/rm/rm.c b/bin/rm/rm.c index 439ab1770846..364afb7ed9e1 100644 --- a/bin/rm/rm.c +++ b/bin/rm/rm.c @@ -39,7 +39,7 @@ char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)rm.c 4.26 (Berkeley) 3/10/91";*/ -static char rcsid[] = "$Id: rm.c,v 1.9 1993/10/25 19:50:23 jtc Exp $"; +static char rcsid[] = "$Id: rm.c,v 1.10 1993/11/16 23:16:49 jtc Exp $"; #endif /* not lint */ #include @@ -279,7 +279,7 @@ check(path, name, sp) first = ch = getchar(); while (ch != '\n' && ch != EOF) ch = getchar(); - return(first == 'y'); + return(first == 'y' || first == 'Y'); } #define ISDOT(a) ((a)[0] == '.' && (!(a)[1] || (a)[1] == '.' && !(a)[2]))