* src/su.c: shell's name must be -su when a su fakes a login.
This commit is contained in:
parent
902aad57af
commit
427b60f288
@ -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>
|
2010-03-30 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
* NEWS, configure.in, libmisc/copydir.c, man/useradd.8.xml,
|
* NEWS, configure.in, libmisc/copydir.c, man/useradd.8.xml,
|
||||||
|
2
src/su.c
2
src/su.c
@ -1021,7 +1021,7 @@ int main (int argc, char **argv)
|
|||||||
* Use the shell and create an argv
|
* Use the shell and create an argv
|
||||||
* with the rest of the command line included.
|
* with the rest of the command line included.
|
||||||
*/
|
*/
|
||||||
argv[-1] = shellstr;
|
argv[-1] = cp;
|
||||||
#ifndef USE_PAM
|
#ifndef USE_PAM
|
||||||
execve_shell (shellstr, &argv[-1], environ);
|
execve_shell (shellstr, &argv[-1], environ);
|
||||||
err = errno;
|
err = errno;
|
||||||
|
Loading…
Reference in New Issue
Block a user