Tizen 2.1 base
[external/shadow-utils.git] / packaging / 483_su_fakelogin_wrong_arg0
1 Goal: shell's name must be -su when a su fakes a login
2
3 Status wrt upstream: not reported yet
4
5 --- a/src/su.c
6 +++ b/src/su.c
7 @@ -1001,7 +1001,7 @@
8                  * Use the shell and create an argv
9                  * with the rest of the command line included.
10                  */
11 -               argv[-1] = shellstr;
12 +               argv[-1] = cp;
13  #ifndef USE_PAM
14                 (void) execve (shellstr, &argv[-1], environ);
15                 err = errno;