git: 708c0a585e9b - xargs: compile yesexpr as ERE
Yuri Pankov
yuripv at FreeBSD.org
Thu Dec 24 23:34:18 UTC 2020
The branch stable/12 has been updated by yuripv:
URL: https://cgit.FreeBSD.org/src/commit/?id=708c0a585e9b60276ec8c81a04805898c7a0da4f
commit 708c0a585e9b60276ec8c81a04805898c7a0da4f
Author: Yuri Pankov <yuripv at FreeBSD.org>
AuthorDate: 2020-12-12 15:38:32 +0000
Commit: Yuri Pankov <yuripv at FreeBSD.org>
CommitDate: 2020-12-24 23:33:18 +0000
xargs: compile yesexpr as ERE
yesexpr is an extended regular expression for quite some time now,
use appropriate flag when compiling it.
PR: 238762
(cherry picked from commit 0d2dcf2166f77fab2af39d9e89bff157ffc0ca5b)
---
usr.bin/xargs/xargs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.bin/xargs/xargs.c b/usr.bin/xargs/xargs.c
index e69314e58fa3..2825a26f4dfa 100644
--- a/usr.bin/xargs/xargs.c
+++ b/usr.bin/xargs/xargs.c
@@ -782,7 +782,7 @@ prompt(void)
(void)fprintf(stderr, "?...");
(void)fflush(stderr);
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);
return (0);
}
More information about the dev-commits-src-branches
mailing list