From nobody Wed Aug 23 03:06:49 2023 X-Original-To: freebsd-current@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 4RVrjN5lcDz4qr8v for ; Wed, 23 Aug 2023 03:07:04 +0000 (UTC) (envelope-from mike@karels.net) Received: from mail2.karels.net (mail2.karels.net [3.19.118.201]) (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 (2048 bits) client-digest SHA256) (Client CN "freebsd", Issuer "freebsd" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RVrjN3tptz3Q7S for ; Wed, 23 Aug 2023 03:07:04 +0000 (UTC) (envelope-from mike@karels.net) Authentication-Results: mx1.freebsd.org; none Received: from mail2.karels.net (localhost [IPv6:0:0:0:0:0:0:0:1]) by mail2.karels.net (8.17.1/8.17.1) with ESMTP id 37N36oxg016736; Tue, 22 Aug 2023 22:06:50 -0500 (CDT) (envelope-from mike@karels.net) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=karels.net; s=mail2; t=1692760010; bh=FKxJIeJwJydt9v2kxFdkoAYK012TcUKxG5rjr/o3UJE=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=qjQcU7oF8tiYsFXYikzyiNDJNwOxDtcOltl3VSgOWHL25d2SPm21wd2qFIbAI6THU pnoxxIwaxEPAgvAW3pyJOiY/RHxZHFQ0e9cPH3BX2RDyhLHi4LX/FzFPD7iHpEEk2g vyjjg9Epg/ALHwAjBmkhASZgqZxVmBtKVkoldtkvhzghQCqKOo3HECPDVCkhyDJ/f+ 2oOdkXxW8gxHFeHUT8SRVQmA83SCVOVbH8ZEQgEAkB1C1LSUr/APb1z6USCEwYmv6Q u6lIO1KRboD7QdFT0FSdDlls0mPGidw94cc+qLkh4d4NjL0PecjsN9E5MG3c4W12/H ZlntWlnIvcAAQ== Received: from [10.0.2.130] ([73.62.165.147]) by mail2.karels.net with ESMTPSA id Z65WEMp35WReQQAAs/W3XQ (envelope-from ); Tue, 22 Aug 2023 22:06:50 -0500 From: Mike Karels To: Jamie Landeg-Jones Cc: grahamperrin@gmail.com, freebsd-current@FreeBSD.org Subject: Re: etcupdate -B, /.cshrc and /.profile Date: Tue, 22 Aug 2023 22:06:49 -0500 X-Mailer: MailMate (1.14r5964) Message-ID: <563EEA5B-0624-4EB3-BCB3-DD8A8F57C3A9@karels.net> In-Reply-To: <202308230237.37N2brSh029907@donotpassgo.dyslexicfish.net> References: <202308230237.37N2brSh029907@donotpassgo.dyslexicfish.net> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@freebsd.org MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4RVrjN3tptz3Q7S 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:16509, ipnet:3.16.0.0/14, country:US] On 22 Aug 2023, at 21:37, Jamie Landeg-Jones wrote: > Graham Perrin wrote: > >> If I recall correctly, a few hours ago etcupdate -B resulted in removal >> of two files: >> >> /.cshrc >> /.profile >> >> Is this degree of checking/removal a novelty? >> >> (I can't recall the files' contents, or when I created them. I guess >> that I carelessly created them as dot files months ago without realising >> that I wasn't at ~, I don't mourn their loss.) > > For as long as I can remember, (as far back as FreeBSD 2.2.7 in 1998) all > FreeBSD installs have /.cshrc and /profile as hardlinks to /root/.cshrc and > /root/.profile . Both sets have been present since 4.3-Reno in 1990, although they were apparently not links. > Removing them both is one of the first things I do when I install a new > system from install-media. Why? > If etcupdate is now removing them, maybe there has been an update to the src > distribution / mntree so that this historical weirdness has finally been removed? It is not weird. /.profile and /.cshrc are used in single-user mode, the ones in /root are used for root logins. > If you have a /root/.cshrc and /root/.profile, try doing an ls -c on them to > see if their changed-date is when you did the etcupdate. They were modified by the removal of $FreeBSD$ a few days ago at the next etcupdate. Mike