From nobody Fri Jan 17 19:15:04 2025 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 4YZTvX74zBz5lLKl for ; Fri, 17 Jan 2025 19:15:04 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YZTvX68Cqz3qlm for ; Fri, 17 Jan 2025 19:15:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737141304; 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=FoA8alwNHo6xHR2y/iq/aGocHatCMGVruQaBDdK/uEI=; b=ZbiFRthkxktpl5F+vmksNa2oqFEsOpDdxBlBwjhd+ToxMObuHRiuvyudpAFH3F1b7Foi1o y5PxjPaQR8lyswpmILOslzkYq7KT/LJDN8DeFWac7cv7FU98EC+vSCgytBN8i6IGbvnzxU 567h1sPbkFdBi6nQO3ASbtP1qLr9WvFBONuYvH4bbMdeHKZdC+oUo+UVAhzs6rBPWnxuMg 13lQU6HNd5YbNeq9ymZnLJ3Ly4W/4y0cAsk3pxm817fzsRjLljQlwLfrLOInefmNXuKmcp nHVKSch8e4LgR1JxZShKJNftAyf99Bk6Davpr1j01yvn0lDuorqoQ+Qyk/9RCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1737141304; 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=FoA8alwNHo6xHR2y/iq/aGocHatCMGVruQaBDdK/uEI=; b=gGPzqukpyWPdUKgqgDpO7682LGWJgBaFTxNliD8N8jp8g29Arl3sDKzX0TseMBrl1jaeP9 z6kcs2yuhBzpQWIfXeNdMBYkUeCIvdyRRHDg+rc8br3DYJ4WlV7ozzTC3NMzau1xiD6V7j Xu4wjdJVYbj2wyeUoTevB1odCNU/VIyG6hqDYdpl8P9WejF2dz4hLS2wMBZYmuW7f7s0Ev ptL/DoQfUfC8q4QmnFgfyE6ARlYNtJcWLIpdsAofgWl/sY8wzM4gTuZh50q9wOOrdY659I EB9DI/5hfRRQ7tGr/9xYIDlMOQZfAsyCoddzHmHeRIUQjhST9Kfy9vdK+3+PvA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1737141304; a=rsa-sha256; cv=none; b=E5eA/sfzrKy6zA2cBWb4NxmJbNCr2Igh/suazf+0iYfALt7VOrcnRgwbqwcSGIL4950jrV HmPNpHXUaq5zvXLfN2Xl1Oin3W9XgdSY+q7rp5SmmLzO4LYrArEqs6OKK8xWUXjVIWe9QU LSAEX5puExCKw6sxRp9xSDcJuUbXfN62rUoGJCgh1JcV4xBjQ7IJUSnCrxEK1yLIK0KtxD jvzvhzcBmpmmfkbB27kNvu6YX45TziaE3r8y02liHw139Kt6jyM2TSlU2CRKLmqxup9hC+ +4aaAjA+8C7MqolYtFSPiSW8vgzYK+5FoPoMbO6ChuSn6Cx1qlUzXtpBOyNHxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YZTvX5GQMzX6b for ; Fri, 17 Jan 2025 19:15:04 +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 50HJF4j2056561 for ; Fri, 17 Jan 2025 19:15:04 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 50HJF40N056560 for bugs@FreeBSD.org; Fri, 17 Jan 2025 19:15:04 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 284119] install(1): numeric -o / -g args produce uname and gname in METALOG Date: Fri, 17 Jan 2025 19:15:04 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: emaste@freebsd.org 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-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D284119 Bug ID: 284119 Summary: install(1): numeric -o / -g args produce uname and gname in METALOG Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: emaste@freebsd.org install -U -M can pass the owner and group through to the METALOG: $ install -U -M /dev/stdout -o root -g wheel /usr/bin/true /tmp ./tmp/true type=3Dfile uname=3Droot gname=3Dwheel mode=3D0755 size=3D5008 install also accepts numeric uid and gid. These should produce uid=3D and = gid=3D in the METALOG, but we still get uname and gname: $ install -U -M /dev/stdout -o 0 -g 0 /usr/bin/true /tmp ./tmp/true type=3Dfile uname=3D0 gname=3D0 mode=3D0755 size=3D5008 In normal (non -U) mode we attempt to look up the name, and parse it as an = id if that fails: if (owner !=3D NULL && !dounpriv) { if (uid_from_user(owner, &uid) =3D=3D -1) { id_t id; if (!parseid(owner, &id)) errx(1, "unknown user %s", owner); uid =3D id; } } else uid =3D (uid_t)-1; Something similar is needed for -U -M mode --=20 You are receiving this mail because: You are the assignee for the bug.=