Authentication-Results: name.execsw.org; dkim=pass (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=VIXt+y4b; dkim=fail reason="signature verification failed" (1024-bit key) header.d=netbsd.org header.i=@netbsd.org header.b=LEP6xnWU Received: by mail.netbsd.org (Postfix, from userid 605) id 8F60D84E99; Tue, 23 Apr 2024 22:12:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713910370; bh=NICY63WAmhqLlvhustJw1zQw1/ysXN7LTlF7zHFUUzs=; h=Date:From:Subject:To:List-Id:Reply-To:List-Unsubscribe; b=VIXt+y4b0xDY37Btf/3SHCxKZO+6/bWinTlvvylJc4WF1F43v7lcemj0XNdtjwnsb B6EYzcIC0lS8nbthKBuq/eUWnUsXU9mWzZ10XlGIkZjgh4Uuwf7bv3zLx/718nAB1g k2EBlyqF02cIiMv1ZosiE5QuJU+DXpnNnZKtahJM= Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 6613284E98 for ; Tue, 23 Apr 2024 22:12:49 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Authentication-Results: mail.netbsd.org (amavisd-new); dkim=pass (1024-bit key) header.d=netbsd.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.netbsd.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id HErJHFxWYXtp for ; Tue, 23 Apr 2024 22:12:49 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id F1DEC84D07 for ; Tue, 23 Apr 2024 22:12:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netbsd.org; s=20240131; t=1713910369; bh=NICY63WAmhqLlvhustJw1zQw1/ysXN7LTlF7zHFUUzs=; h=Date:From:Subject:To:Reply-To; b=LEP6xnWUwi0+UgJDcXPTtHJF79BNvN9YhiOyzcyXU6yXF4/AK9ACEEHmiC+FKZYLr TmDQ4+eN0Z3M/OW/oUOm62ZArIdURJbX2IY+fVaGp3nw38g+gFvY+obHe74VdzJhXf rNFb83I/LHkD7MYUOs8p0FlcYqWK9gD+YObkOPHI= Received: by cvs.NetBSD.org (Postfix, from userid 500) id EB04DFA2C; Tue, 23 Apr 2024 22:12:48 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Tue, 23 Apr 2024 18:12:48 -0400 From: "Christos Zoulas" Subject: CVS commit: src/usr.sbin/makefs To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20240423221248.EB04DFA2C@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Christos Zoulas" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: christos Date: Tue Apr 23 22:12:48 UTC 2024 Modified Files: src/usr.sbin/makefs: walk.c Log Message: makefs: Fix symlink permission bits Permission bits for symlinks are taken straight from `lstat()`. However, the actual bits presented to the user are filesystem/kernel specific. For example, Linux with ext2/3/4 will use 0777 for symlinks, whereas NetBSD/FFS will show 0755. As far as `makefs` is in the loop, the target filesystem will likely be FFS, so use 0755. To generate a diff of this commit: cvs rdiff -u -r1.34 -r1.35 src/usr.sbin/makefs/walk.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.