[Bug 269738] /rescue/pgrep does not work
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 269738] /rescue/pgrep does not work"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 269738] /rescue/pgrep does not work"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 269738] /rescue/pgrep does not work"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 269738] /rescue/pgrep does not work"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 269738] /rescue/pgrep does not work"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Feb 2023 15:35:21 UTC
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: bugs@FreeBSD.org Reporter: stephen.wall@redcom.com /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.