xargs: compile yesexpr as ERE

yesexpr is an extended regular expression for quite some time now,
use appropriate flag when compiling it.

PR:		238762
Reviewed by:	kevans
Differential Revision:	https://reviews.freebsd.org/D27509
This commit is contained in:
yuripv 2020-12-12 15:38:32 +00:00
parent f282efad7f
commit 19e2776e15

View File

@ -782,7 +782,7 @@ prompt(void)
(void)fprintf(stderr, "?..."); (void)fprintf(stderr, "?...");
(void)fflush(stderr); (void)fflush(stderr);
if ((response = fgetln(ttyfp, &rsize)) == NULL || if ((response = fgetln(ttyfp, &rsize)) == NULL ||
regcomp(&cre, nl_langinfo(YESEXPR), REG_BASIC) != 0) { regcomp(&cre, nl_langinfo(YESEXPR), REG_EXTENDED) != 0) {
(void)fclose(ttyfp); (void)fclose(ttyfp);
return (0); return (0);
} }