From nobody Tue Jun  4 23:11:53 2024
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 4Vv5vZ60Bsz5Mt80;
	Tue, 04 Jun 2024 23:11:54 +0000 (UTC)
	(envelope-from lexi@le-fay.org)
Received: from fuchsia.eden.le-Fay.ORG (fuchsia.eden.le-fay.org [IPv6:2001:8b0:aab5:107::11])
	by mx1.freebsd.org (Postfix) with ESMTP id 4Vv5vZ3xJDz4D8b;
	Tue,  4 Jun 2024 23:11:54 +0000 (UTC)
	(envelope-from lexi@le-fay.org)
Authentication-Results: mx1.freebsd.org;
	none
Received: from iris.eden.le-Fay.ORG (iris.eden.le-fay.org [IPv6:fd12:8247:3:1::7])
	by fuchsia.eden.le-Fay.ORG (Postfix) with ESMTP id 21FC3277D4;
	Tue, 04 Jun 2024 23:11:54 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=le-fay.org; s=fuchsia;
	t=1717542714; bh=TK+B5AZFYmcc8wMtPTmQvbyoLos1wefowczw4CTBO84=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=wP9hoPfQWgT01HeoIy1VWVsOCiXYLQyyDh+hRJGbcFP8VhdLMR1ClHY2BEUFpCTIf
	 LXvEGinzE/hwb6R4D6kWCMI9Rh8yuBnmp0RI6wrIuoO7BJ4HuXQfxaA13KNZ6P0rPZ
	 o3FnqG1oURfgUvvWvUUDGZZ6cn9Qm42Eq0SoonBE=
Received: from daphne.eden.le-fay.org (daphne.eden.le-fay.org [IPv6:2001:8b0:aab5:106:3::17])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384)
	(No client certificate requested)
	by iris.eden.le-Fay.ORG (Postfix) with ESMTPSA id 8E4EC2C0418;
	Wed, 05 Jun 2024 00:11:54 +0100 (BST)
Date: Wed, 5 Jun 2024 00:11:53 +0100
From: Lexi Winter <lexi@le-fay.org>
To: John Baldwin <jhb@freebsd.org>
Cc: Emmanuel Vadot <manu@freebsd.org>, src-committers@freebsd.org,
	dev-commits-src-all@freebsd.org, dev-commits-src-main@freebsd.org
Subject: Re: git: dcb65c5a94d4 - main - csh: Remove hardlink /.cshrc
Message-ID: <Zl-fOXTFMDj2cbHg@daphne.eden.le-fay.org>
References: <202405290757.44T7vbf4021395@gitrepo.freebsd.org>
 <e447211e-6d51-4060-8f6c-b017bb1c9ce1@FreeBSD.org>
List-Id: Commit messages for the main branch of the src repository <dev-commits-src-main.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main
List-Help: <mailto:dev-commits-src-main+help@freebsd.org>
List-Post: <mailto:dev-commits-src-main@freebsd.org>
List-Subscribe: <mailto:dev-commits-src-main+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-src-main+unsubscribe@freebsd.org>
X-BeenThere: dev-commits-src-main@freebsd.org
Sender: owner-dev-commits-src-main@FreeBSD.org
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
In-Reply-To: <e447211e-6d51-4060-8f6c-b017bb1c9ce1@FreeBSD.org>
X-Spamd-Bar: ----
X-Rspamd-Pre-Result: action=no action;
	module=replies;
	Message is reply to one we originated
X-Spamd-Result: default: False [-4.00 / 15.00];
	REPLY(-4.00)[];
	ASN(0.00)[asn:20712, ipnet:2001:8b0::/32, country:GB]
X-Rspamd-Queue-Id: 4Vv5vZ3xJDz4D8b

John Baldwin:
> >      csh: Remove hardlink /.cshrc
>=20
> FWIW, this happens anytime you use /bin/csh as root's shell and boot into
> single user mode.

if csh reads /.cshrc rather than /root/.cshrc, this feels like a bug in
csh which should be fixed.

is it relying on $HOME rather than using getpwuid() to find its home
directory?