Skip to content

Commit

Permalink
procps: Make -f/--full the default for pgrep&pkill
Browse files Browse the repository at this point in the history
Without -f/--full, pgrep&pkill matches searches by default only on
the binary name, which will not work with the changes proposed in
termux/termux-exec#24, as there the binary
will always be /system/bin/linker64.
  • Loading branch information
fornwall committed Oct 2, 2023
1 parent f945023 commit 676c936
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/procps/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Utilities that give information about processes using th
TERMUX_PKG_LICENSE="LGPL-2.0"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=3.3.17
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://sourceforge.net/projects/procps-ng/files/Production/procps-ng-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=4518b3e7aafd34ec07d0063d250fd474999b20b200218c3ae56f5d2113f141b4
TERMUX_PKG_DEPENDS="ncurses"
Expand Down
12 changes: 12 additions & 0 deletions packages/procps/pgrep.c.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff -u -r ../src-orig/pgrep.c ./pgrep.c
--- ../src-orig/pgrep.c 2023-10-02 11:04:29.715645019 +0000
+++ ./pgrep.c 2023-10-02 11:17:10.632452771 +0000
@@ -80,7 +80,7 @@

/* User supplied arguments */

-static int opt_full = 0;
+static int opt_full = 1;
static int opt_long = 0;
static int opt_longlong = 0;
static int opt_oldest = 0;

0 comments on commit 676c936

Please sign in to comment.