Hi!
I'm working on cleaning up lsh so that it is useful to me. Here is
a patch that invokes the login shell in a way that is consistent with
other login programs (argv[0] has a leading hyphen).
It also fixes a problem where the sanity check for
session->user->shell is done *after* it's dereferenced.
BTW, I don't yet understand your gc allocator, so I used a static
buffer for my string operations. You may want to rewrite it to use
dynamic allocation.
1999-01-19 Gordon Matzigkeit <[EMAIL PROTECTED]>
* server.c (do_spawn_shell): Make sure session->user->shell is not
null before we dereference it.
Set argv[0] to be the shell name wth a prepended hyphen.
--
Gordon Matzigkeit <[EMAIL PROTECTED]> //\ I'm a FIG (http://www.fig.org/)
Lovers of freedom, unite! \// I use GNU (http://www.gnu.org/)
[Unfortunately, www.fig.org is broken. Please stay tuned for details.]
lsh-19990114-shell.diff