]> granicus.if.org Git - procps-ng/commit
pgrep: warning about 15+ chars name only if zero matches found
authorJan Rybar <jrybar@redhat.com>
Tue, 22 Nov 2016 16:42:54 +0000 (17:42 +0100)
committerJan Rybar <jrybar@redhat.com>
Mon, 2 Jan 2017 13:50:22 +0000 (14:50 +0100)
commit1aacf4af7f199d77fc9386e249eee654f59880db
treec428f87a5092bc21188cccc98b63615ed1bdf731
parent19649938ec21f154e414663ff7ad97c845e88597
pgrep: warning about 15+ chars name only if zero matches found
This avoids situations where longer regex which matches short-named proc is used.
Test for pgrep updated.
pgrep.c
testsuite/pgrep.test/pgrep.exp