Page MenuHomeFreeBSD

Fix links install for bin/csh and bin/sh
ClosedPublic

Authored by brd on Aug 15 2018, 3:49 PM.
Tags
None
Referenced Files
F81667591: D16725.diff
Fri, Apr 19, 4:51 PM
Unknown Object (File)
Tue, Apr 16, 4:37 PM
Unknown Object (File)
Mar 15 2024, 12:58 PM
Unknown Object (File)
Mar 15 2024, 12:58 PM
Unknown Object (File)
Mar 15 2024, 12:58 PM
Unknown Object (File)
Mar 11 2024, 4:59 PM
Unknown Object (File)
Mar 11 2024, 4:50 PM
Unknown Object (File)
Jan 5 2024, 7:58 AM
Subscribers

Details

Summary

Additionally invert the csh shell change for root

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 18812
Build 18476: arc lint + arc unit

Event Timeline

rgrimes added inline comments.
bin/csh/Makefile
160

This is in the wrong place, tcsh csh link has 0 to do with installconfig.

161

Why is installconfig editing the master.password file at all? It certainly did not install it, and should not in anyway be doing anything that effects the contents.

etc/master.passwd
3

Please do not do this.

bin/csh/Makefile
160

Yup, I was too quick here... will update

161

Yet... It will once I move master.passwd to CONFS

etc/master.passwd
3

Why, this whole change makes it to what we have today.. i.e. if csh is enabled the sed above switches to it, but otherwise it leaves it as sh. I just inverted how it was done.

Update for csh/tcsh LINK

brd marked 2 inline comments as done.Aug 15 2018, 4:14 PM
This revision is now accepted and ready to land.Aug 15 2018, 4:18 PM
This revision was automatically updated to reflect the committed changes.
bin/csh/Makefile
161

I see it now, this has to do with unwrapping MK_TCSH.

etc/master.passwd
3

So can't you de-invert it and leave master.passwd untouched?

etc/master.passwd
3

What value would that provide?

etc/master.passwd
3

Actually the more I think about this, the whole edit of master.passwd should be done in the Makefile that is installing it, and these edits in the tcsh/Makefile ripped out. It is simply the wrong place for it.

You do not see minimizing changes to src files as having value?

This is still wrong.

  • It would be better to use pw user mod 0 -s /path/shell instead of sed.
  • The toor user exists in master.passwd to allow to log in with sh or bash.