https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269738
Bug ID: 269738
Summary: /rescue/pgrep does not work
Product: Base System
Version: 13.1-RELEASE
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
/rescue/pgrep fails to recognize the -q option. When run without any options,
it prints the usage message for pkill.
Debugging with lldb shows that the call to getprogname() is actually calling
getexecname() from sys/contrib/openzfs/lib/libspl/os/freebsd/getexecname.c,
which does not trim the leading path from the executable name, resulting in "if
(strcmp(_getprogname(), "pgrep") == 0) {" not matching, and the executable
behaving as pkill instead of pgrep.
--
You are receiving this mail because:
You are the assignee for the bug.