From nobody Wed Nov 23 20:15:10 2022 X-Original-To: dev-commits-src-main@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 4NHXRf5RvZz4jCgC; Wed, 23 Nov 2022 20:15:10 +0000 (UTC) (envelope-from git@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 4NHXRf4v5qz3rj7; Wed, 23 Nov 2022 20:15:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669234510; 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=3IyRJcqvzQB1OV/UAuHmgg0mUtmId6kKMBgqdbLTvD8=; b=Uh5ftyJi6zLv+qtAAuzhYvGKNrahEwq9joEo8cYqf1v+yS0+sfFtgcNAgdT6YtAJsfiogx RluQYKOUK/EaBSeMoDhIiBvT/d26q4fXvenHN5QgCuHqxfBtpFI4DLylvcsq3lMiWPCSbE 63W/G3DtquD999VYodD3KdvNxHIvfBGkimhVXOWbBknf+/0vPs5fh2NWuR7lN8halAyibT Ns0keZieuWTKOPRoaJyMnaZedyXtCLEha5xvU8vi5/HSYXXLKr0ycMJoSFuBoxFdwfSqWZ SBRWwWv//q2ql1s5GMru+NpSZDk9qFlDFOMQohoT5sjP8MTgH0XJEWs43WDOEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669234510; 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=3IyRJcqvzQB1OV/UAuHmgg0mUtmId6kKMBgqdbLTvD8=; b=V5EebdOUxCZtu6EUtpw83b4zsN0RLH2Q1rtn6ObHiESEUcsi+r9N51t9xZWjxWT1hT+T3b lcjDbCwUbmr13/T+qtepGNfWW0lu+DRLpSfyNqjOYtJKb7nRVDLpzT23LuYjXLoG1nim5K WpFWTcPnPku7Vv6JidxgCq9IJr1Iry8vZ1tiIQCUOebjEiUM99FFpWbrXgkldDi94K7hzB MSZVQ0JIsw2oZsHVqansldXVO3jT97KCot3Roc3nN5zAGacKsA0B7uzUmQHBQZsCAbMPy7 fuMhihxe5PgJBl1OA0CnzmfrU4B8XZ3vGcrtrBhZ/KHZuE11/bAHUB7CnR+PCw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669234510; a=rsa-sha256; cv=none; b=RYAtJwSL3n/w6UwJVpfgWnRNMCXroKP/cgiGcrKBdXcK6ymJfYtzr9ozivD7FpNRJhJ+ZE O7R8NxU0pY4pfUmaAc49v9DMOOjsn+bZIcbFTVbe2sC3w+R5YKADJTv0ZBKOYV5bLcBFqy 1DdDmj317PMbAggbE0UItteoKFp01hyrbGLVJukDgCXzhJ7FwmTWjbWfMaehLmYLy5G6fT R4Rz1sioLpRzaxE3hyvB7WBZHUYNvsA9MsyCrSFFjklKmSfH7IuDIBDKSzaPTY/ft+93tW y+4FyYy/MBUV+1ItEMrzpjqqew0/QbRIk8cRpmXNW0I9f5gKiamw9w+r/pNoSA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 4NHXRf3rcMzZh0; Wed, 23 Nov 2022 20:15:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2ANKFAwO009497; Wed, 23 Nov 2022 20:15:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2ANKFARa009496; Wed, 23 Nov 2022 20:15:10 GMT (envelope-from git) Date: Wed, 23 Nov 2022 20:15:10 GMT Message-Id: <202211232015.2ANKFARa009496@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 1dbb9994d4dd - main - sh: install hard link with same mode as target List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1dbb9994d4dd44357976daedcac7d280e8327382 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=1dbb9994d4dd44357976daedcac7d280e8327382 commit 1dbb9994d4dd44357976daedcac7d280e8327382 Author: Ed Maste AuthorDate: 2022-11-23 15:20:49 +0000 Commit: Ed Maste CommitDate: 2022-11-23 20:10:02 +0000 sh: install hard link with same mode as target Previously when using NO_ROOT we recorded a METALOG entry for the /.profile hard link with a different mode than the link target, which is not permitted. Reviewed by: bapt Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D37476 --- bin/sh/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/sh/Makefile b/bin/sh/Makefile index b074121d0ecd..c61094b06720 100644 --- a/bin/sh/Makefile +++ b/bin/sh/Makefile @@ -68,6 +68,7 @@ SUBDIR.${MK_TESTS}+= tests beforeinstallconfig: rm -f ${DESTDIR}/.profile +LINKMODE=${CONFMODE} afterinstallconfig: ${INSTALL_LINK} ${TAG_ARGS} ${DESTDIR}/root/.profile ${DESTDIR}/.profile