Page MenuHomeFreeBSD

csh: Remove hardlink /.cshrc
ClosedPublic

Authored by manu on Mon, May 27, 2:29 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 4, 11:08 PM
Unknown Object (File)
Mon, Jun 3, 1:42 PM
Unknown Object (File)
Sun, Jun 2, 8:25 AM
Unknown Object (File)
Fri, May 31, 4:53 AM
Unknown Object (File)
Wed, May 29, 7:59 AM
Unknown Object (File)
Tue, May 28, 5:13 PM

Details

Summary

Remove this historical artifact.
csh will try to use /.csrch if the user has no home directory defined which
is rather unlikely (To be exact if the concatenation of $HOME and "/.cshrc"
fail which is the same thing).

Also, with this change pkg will happily handle 3way merge for /root/.cshrc

Sponsored by: Beckhoff Automation GmbH & Co. KG

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

manu requested review of this revision.Mon, May 27, 2:29 PM
emaste added a subscriber: emaste.

Tag it for Relnotes, I'd say

This revision is now accepted and ready to land.Mon, May 27, 2:35 PM

I think this is a good idea.

Historically, root's home directory was /. Later, it moved to /root.
I believe this hard link originated in that move.
There were times when things were so messed up that the system was confused about home directories, so would default to /, and so this would give users something other than a bare shell. IIRC (and this is fuzzy) this was most often the root user in the early days, but became other users for when the NAS was down. But maybe that's an accidental side effect.
I've not done a full, deep dive, but root looks to have moved around in 4.4BSD time frame. But 30 years is long enough to allow for a transition to complete.

This same niggle tripped up mergemaster. IIRC from that experience, there were more than one of these files. But it looks like 4.4BSD also had .profile, but that was moved to /bin/sh when brad broke up the giant etc Makefile...

This revision was automatically updated to reflect the committed changes.