From: Wade Berrier Date: Wed, 8 Jun 2011 21:46:55 +0000 (-0600) Subject: pkill/pgrep: support extended regular expressions X-Git-Tag: 1_19_0~67 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=000ae5cefe204aec44e7997440c4ea7eca5d4893;p=oweals%2Fbusybox.git pkill/pgrep: support extended regular expressions Done by enabling the REG_EXTENDED and REG_NOSUB regex flags, which also increases compatibility with the procps versions. Signed-off-by: Wade Berrier Signed-off-by: Denys Vlasenko --- diff --git a/procps/pgrep.c b/procps/pgrep.c index 156b4ad69..dc7ffff48 100644 --- a/procps/pgrep.c +++ b/procps/pgrep.c @@ -128,7 +128,7 @@ int pgrep_main(int argc UNUSED_PARAM, char **argv) bb_show_usage(); if (argv[0]) - xregcomp(&re_buffer, argv[0], 0); + xregcomp(&re_buffer, argv[0], REG_EXTENDED | REG_NOSUB); matched_pid = 0; cmd_last = NULL;