svn commit: r368580 - head/usr.bin/xargs

Yuri Pankov <[email protected]> Sat, 12 Dec 2020 15:38:32 +0000 (UTC)
Newsgroups gmane.os.freebsd.devel.cvs
Message-ID <202012121538.0BCFcW50061612__16897.9329567932$1607787520$gmane$org@repo.freebsd.org>
Author: yuripv
Date: Sat Dec 12 15:38:32 2020
New Revision: 368580
URL: https://svnweb.freebsd.org/changeset/base/368580

Log:
  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

Modified:
  head/usr.bin/xargs/xargs.c

Modified: head/usr.bin/xargs/xargs.c
==============================================================================
--- head/usr.bin/xargs/xargs.c	Sat Dec 12 14:53:34 2020	(r368579)
+++ head/usr.bin/xargs/xargs.c	Sat Dec 12 15:38:32 2020	(r368580)
@@ -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);
 	}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"