From nobody Tue Feb 21 15:35:21 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PLjzG0Jccz3snMt for ; Tue, 21 Feb 2023 15:35:22 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PLjzF4Mcsz3FYm for ; Tue, 21 Feb 2023 15:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676993721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=cgsfcD+KeCqftm6flrZv5bvUMOucKa7T6bJzO4tl7nQ=; b=MpMcTd8KBGU6wD9gHRTCZ9yLlqSNcYq06b5BC1Z59xykjbSlZJ7eyE5tlXmlI0QKFY9IoK zjSwi9uMzt/5CQy/MC9n+5/ZrA+Ep9zOqA5GpFspgSGXoDZaE3/VGrZKjCEQg+oQqOp+9i qLMq/Gl71ZzdqK/E0S4TM5PX3NAtiCBeF/Hma/B+JQXKo1IbbHy+/qxMbJSDCaKh2MPUlT FdqCHuynAHOFIzTTJNyjo8EyvlaCcW88j5YGnpF0XiDaDXbIb59w2KuLRIGjv2PSnmjaoQ 1Xk96jklYUj+WVFRtYRQvR86Ev0yIzmgdUW0/tjpXCoP2QgVHSn8gjGULHd55A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676993721; a=rsa-sha256; cv=none; b=vnywTkkcSF9YuSVfFFrKAHRFJP3z9m+yksgNTcpK9NvoPCqwMqPQJLzwn8Vl3AdKvTYgaE JDJX71vH+dgVpNBgDY35dRQGbKL72zXBAuThw3sahRbj+LXXq1plsbTD8PFER9ojdfwdJ4 Y24+yYf0YEAasb4tg4F6x6NeQ8M9meQLUgxKzpinIr1WXdoS9QZv15FTQyDyTHS2xz2xeP T9+3Nph9YUee7NeGb5HBN25ixNyQe4pOPdZwQPmfhNWxc6o1A6MMUi+BhvC4QKxCWgIoVp wzFGuTfnivJ5nOrXTwhJZ2lJootcFZaiaKQ9WRPS5nO26PfgkNWIMF6InMRR2w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PLjzF3PqXzQby for ; Tue, 21 Feb 2023 15:35:21 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 31LFZLJs044531 for ; Tue, 21 Feb 2023 15:35:21 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 31LFZLAM044530 for bugs@FreeBSD.org; Tue, 21 Feb 2023 15:35:21 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 269738] /rescue/pgrep does not work Date: Tue, 21 Feb 2023 15:35:21 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: stephen.wall@redcom.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D269738 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 optio= ns, 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") =3D=3D 0) {" not matching, and the executa= ble behaving as pkill instead of pgrep. --=20 You are receiving this mail because: You are the assignee for the bug.=