root@kibar:~/procps-3.3.16# diff -u pgrep.c ../orig/procps-3.3.16/pgrep.c --- pgrep.c 2021-02-02 11:39:44.000000000 -0500
+++ ../orig/procps-3.3.16/pgrep.c 2020-02-06 06:04:02.000000000 -0500 @@ -498,8 +498,6 @@ pid_t myself = getpid(); struct el *list = NULL; long cmdlen = sysconf(_SC_ARG_MAX) * sizeof(char); - if (cmdlen==-1) // sysconf returned "no limitations" - cmdlen=1000; // 1000 chars (arbitrary value) char *cmdline = xmalloc(cmdlen); char *cmdsearch = xmalloc(cmdlen); char *cmdoutput = xmalloc(cmdlen); root@kibar:~/procps-3.3.16# # DEB_BUILD_OPTIONS="nostrip noopt" dpkg-buildpackage -us -uc # apt-get --reinstall install ../*.deb # pgrep xterm 2873
