From nobody Thu Mar 23 15:10:26 2023 X-Original-To: dev-commits-src-all@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 4Pj80g2SVRz41SSs; Thu, 23 Mar 2023 15:10:27 +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 4Pj80g1zH7z4bRr; Thu, 23 Mar 2023 15:10:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679584227; 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=mp5YFeCJg8G8pdK+aiRDcLiDkp/qh8DDv+Nrw+LDqI0=; b=p8xULy/T6h/Ls1WjWxsHTke+QgccYq0B2pCUKcisBoULEDILxwlDjhbywCxPtMh1C8O8/B 6kKKpDv7iaFCpewnO0LOBXHHjZyKzzr6uXHIsBUFw2pPtJrtJt1h5lYlW6FFYN9FNeZJWR 6Y1w2xZ+HfvEObj6maeD403DBlBlOHkpNIoGG6b52RQSfjd5NpScOuIQOTMSthiMdGl4fv nih6fx+XpTzaTOlJqrQtzlL3/hJ/GZvpQc6HiHNPYgPj2TSbC5brF0IV8iA4ujqlkuvVcU vSaCkLiB92kjQ/t5I6XZKybotfLHKtRER9xicH95WHXnaNqhNEz8vAMS9F+o1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1679584227; 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=mp5YFeCJg8G8pdK+aiRDcLiDkp/qh8DDv+Nrw+LDqI0=; b=cTft6zz6l56MftM6HVtTlAgu+NZt146gQEbOERPyrpBfVomNSVmSSxrqRIACXTJV/EhhUs ZExBTY0w3crqc4Hm1RpJyerP6oI93Y62tMba13R9BrApkEF+5MM2vR1BzF8pkDWFDXJbFD JGsD4LCkt0KW2qCk1FvIj/TSKMdrMdRVRbFlJOy9REbDcbHqZpVCFltGQo4iGXMSS9Mwa+ hwZqMjyR11d6qMa1cQZkZsflU94HryeANYAGlssL+vzgLnx/FH+iFG5SL4+eJbmLKbatlu 3U1lAqRqpTBoyYWxTkWjz0CQlEvCU2rAEHRraSGeYSA3DJYgtoYo+0p2Qnkg1g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1679584227; a=rsa-sha256; cv=none; b=ww21f7ueKCBUdo3X+NqEEZhMbCTMy6/Swix0fyadmhwVGgErPuge4f6FT5auO0cQkQJOjk qjPDsPMhyoIayOwVvcHIMA4ri/TzbMAaXQnIBA3KusiLV+4oiDg4rk2FBDmTNOMsejlqxj 3A4eFLhTNOBCUNSZ/T/hWuGPtmk1m7qikVZItbfCOK/I96Qx44k5IF1vxlUFPFJ8b92Pcp bGj5Bv95c8iqsjgvJ8XVd+YJPC5Gx1tiKaUOzHC+bT9AMm1YTQhHA5KtVDG5qmYRdmFp08 dzLQi/0aY+62jwQC34qSOMqRnUmaoWhZAMrICZgb3kp20GlOUHwboyxcwlamRA== 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 4Pj80g0tHhzgV3; Thu, 23 Mar 2023 15:10:27 +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 32NFAQPg054114; Thu, 23 Mar 2023 15:10:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 32NFAQiA054113; Thu, 23 Mar 2023 15:10:26 GMT (envelope-from git) Date: Thu, 23 Mar 2023 15:10:26 GMT Message-Id: <202303231510.32NFAQiA054113@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Ed Maste Subject: git: feb3da25265d - stable/13 - sh: install hard link with same mode as target List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: feb3da25265d519c3353c997cd1fd1bff54267e8 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=feb3da25265d519c3353c997cd1fd1bff54267e8 commit feb3da25265d519c3353c997cd1fd1bff54267e8 Author: Ed Maste AuthorDate: 2022-11-23 15:20:49 +0000 Commit: Ed Maste CommitDate: 2023-03-23 14:33:01 +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 (cherry picked from commit 1dbb9994d4dd44357976daedcac7d280e8327382) --- 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