Page MenuHomeFreeBSD

Make sh(1) recognize the default $HOME.
ClosedPublic

Authored by trasz on Jan 7 2019, 5:06 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jul 1 2025, 8:37 AM
Unknown Object (File)
Jun 30 2025, 6:20 AM
Unknown Object (File)
Jun 27 2025, 5:41 AM
Unknown Object (File)
Jun 26 2025, 5:43 AM
Unknown Object (File)
Jun 20 2025, 8:23 PM
Unknown Object (File)
Jun 20 2025, 7:44 PM
Unknown Object (File)
Jun 20 2025, 4:28 PM
Unknown Object (File)
Jun 19 2025, 6:10 AM
Subscribers

Details

Summary

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

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

Event Timeline

Better, fork-less version suggested by jilles@.

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.