Page MenuHomeFreeBSD

Make sh(1) recognize the default $HOME.

Authored by trasz on Jan 7 2019, 5:06 PM.



Make sh(1) recognize the default $HOME. By default /home
is a symlink; without this change, when you log in, the sh(1)
won't realize the current directory (eg '/usr/home/test')
is the same as $HOME ('/home/test').

Diff Detail

rS FreeBSD src repository
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

trasz created this revision.Jan 7 2019, 5:06 PM
trasz updated this revision to Diff 52639.Jan 7 2019, 5:14 PM

Better, fork-less version suggested by jilles@.

trasz added a reviewer: jilles.Jan 7 2019, 5:14 PM
jilles accepted this revision.Jan 8 2019, 8:26 PM

A case could be made that it is really login(1) and sshd(8)'s job to set PWD along with chdir(2), but this will do.

This revision is now accepted and ready to land.Jan 8 2019, 8:26 PM
This revision was automatically updated to reflect the committed changes.