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)
Mon, Oct 21, 1:28 AM
Unknown Object (File)
Mon, Oct 21, 1:27 AM
Unknown Object (File)
Mon, Oct 21, 1:27 AM
Unknown Object (File)
Mon, Oct 21, 1:27 AM
Unknown Object (File)
Mon, Oct 21, 1:09 AM
Unknown Object (File)
Oct 4 2024, 12:22 AM
Unknown Object (File)
Sep 24 2024, 3:21 AM
Unknown Object (File)
Sep 23 2024, 10:32 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.