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
Unknown Object (File)
Sat, Dec 7, 4:52 PM
Unknown Object (File)
Tue, Dec 3, 1:12 PM
Unknown Object (File)
Tue, Dec 3, 1:07 PM
Unknown Object (File)
Nov 25 2024, 4:37 AM
Unknown Object (File)
Oct 23 2024, 2:16 AM
Unknown Object (File)
Oct 20 2024, 3:08 AM
Unknown Object (File)
Oct 18 2024, 1:13 PM
Unknown Object (File)
Oct 2 2024, 4:09 PM
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 18815
Build 18479: 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.