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:
parent
f282efad7f
commit
19e2776e15
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user