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)
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
Unknown Object (File)
Oct 2 2024, 10:11 AM
Unknown Object (File)
Oct 2 2024, 4:26 AM
Unknown Object (File)
Sep 30 2024, 2:22 AM
Unknown Object (File)
Sep 29 2024, 9:58 PM
Subscribers

Details

Summary

Additionally invert the csh shell change for root

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rgrimes added inline comments.
bin/csh/Makefile
160 ↗(On Diff #46712)

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

161 ↗(On Diff #46712)

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 ↗(On Diff #46712)

Please do not do this.

bin/csh/Makefile
160 ↗(On Diff #46712)

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

161 ↗(On Diff #46712)

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

etc/master.passwd
3 ↗(On Diff #46712)

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 ↗(On Diff #46712)

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

etc/master.passwd
3 ↗(On Diff #46712)

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

etc/master.passwd
3 ↗(On Diff #46712)

What value would that provide?

etc/master.passwd
3 ↗(On Diff #46712)

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.