Page MenuHomeFreeBSD

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

Authored by trasz on Jan 7 2019, 5:06 PM.
Tags
None
Referenced Files
F152597285: D18775.id52684.diff
Wed, Apr 15, 9:57 PM
Unknown Object (File)
Wed, Apr 15, 3:17 PM
Unknown Object (File)
Wed, Apr 15, 11:37 AM
Unknown Object (File)
Wed, Apr 15, 5:44 AM
Unknown Object (File)
Tue, Apr 14, 10:41 PM
Unknown Object (File)
Tue, Apr 14, 5:20 PM
Unknown Object (File)
Sun, Apr 12, 1:05 PM
Unknown Object (File)
Sun, Apr 12, 6:18 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.