Date: Tue, 21 Feb 2023 15:35:21 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269738] /rescue/pgrep does not work Message-ID: <bug-269738-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
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.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-269738-227>
