projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6295d27
)
pkill/pgrep: support extended regular expressions
author
Wade Berrier
<wade_berrier@appsig.com>
Wed, 8 Jun 2011 21:46:55 +0000
(15:46 -0600)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 10 Jun 2011 04:01:30 +0000
(06:01 +0200)
Done by enabling the REG_EXTENDED and REG_NOSUB regex flags,
which also increases compatibility with the procps versions.
Signed-off-by: Wade Berrier <wade_berrier@appsig.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
procps/pgrep.c
patch
|
blob
|
history
diff --git
a/procps/pgrep.c
b/procps/pgrep.c
index 156b4ad690cd9a2671d4a3906aafb55c57ef23f2..dc7ffff486e10ddf51a10676b6c30ad147bd6eca 100644
(file)
--- 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;