diff --git a/ChangeLog b/ChangeLog index fbb37653..872f24d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-03-30 Nicolas François + + * src/su.c: shell's name must be -su when a su fakes a login. + 2010-03-30 Nicolas François * NEWS, configure.in, libmisc/copydir.c, man/useradd.8.xml, diff --git a/src/su.c b/src/su.c index 837e76c3..a844edc8 100644 --- a/src/su.c +++ b/src/su.c @@ -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;