pgrep: Don't segfault with no match

If pgrep is run with a non-program name match and there are
no matches, it segfaults.

The testsuite thinks zero bytes sent, and zero bytes sent
because the program crashed is the same :/

References:
 commit 1aacf4af7f
 https://bugs.debian.org/894917

Signed-off-by: Craig Small <csmall@enc.com.au>
This commit is contained in:
Craig Small
2018-04-06 23:00:29 +10:00
parent 2fc2427ed3
commit 0b488c7f5c
2 changed files with 5 additions and 1 deletions

4
NEWS
View File

@@ -1,3 +1,7 @@
procps-ng-3.3.14
----------------
* pgrep: Don't segfault on non match Debian #894917
procps-ng-3.3.13
----------------
* library: Increment to 7:0:1