Page MenuHomeFreeBSD

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

Authored by trasz on Jan 7 2019, 5:06 PM.
Tags
None
Referenced Files
F165001250: D18775.diff
Wed, Aug 5, 7:09 AM
Unknown Object (File)
Tue, Jul 28, 9:52 PM
Unknown Object (File)
Sun, Jul 26, 2:29 PM
Unknown Object (File)
Fri, Jul 24, 5:43 PM
Unknown Object (File)
Wed, Jul 22, 2:39 PM
Unknown Object (File)
Tue, Jul 21, 2:08 AM
Unknown Object (File)
Sun, Jul 19, 6:35 PM
Unknown Object (File)
Sun, Jul 12, 1:17 PM
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.