commit | 084d07f4eb5dc3d90e28725524147e66a25b869b | [log] [download] |
---|---|---|
author | Nicholas Marriott <nicm@openbsd.org> | Wed Jul 08 05:26:45 2009 +0000 |
committer | Nicholas Marriott <nicm@openbsd.org> | Wed Jul 08 05:26:45 2009 +0000 |
tree | 0cbfab6bd64ee71d1023e83930ec7e6b8aeea2da | |
parent | b4efd1ca89132dcf24acd6dc7b1ccee369b7d90c [diff] |
Just appending -l to $SHELL to create a login shell is wrong: -l is not POSIX, and some people may use shells which do not support it. Instead, make an empty default-command option mean a login shell, and fork it with a - in argv[0] which is the method used by login(1). Also fix the automatic-rename code to handle this correctly and to strip a leading - if present.