* src/su.c: shell's name must be -su when a su fakes a login.

This commit is contained in:
nekral-guest 2010-03-30 21:32:36 +00:00
parent 902aad57af
commit 427b60f288
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-03-30 Nicolas François <nicolas.francois@centraliens.net>
* src/su.c: shell's name must be -su when a su fakes a login.
2010-03-30 Nicolas François <nicolas.francois@centraliens.net>
* NEWS, configure.in, libmisc/copydir.c, man/useradd.8.xml,

View File

@ -1021,7 +1021,7 @@ int main (int argc, char **argv)
* Use the shell and create an argv
* with the rest of the command line included.
*/
argv[-1] = shellstr;
argv[-1] = cp;
#ifndef USE_PAM
execve_shell (shellstr, &argv[-1], environ);
err = errno;