summaryrefslogtreecommitdiff
path: root/source/a/shadow/patches/r3194.diff
blob: 0eff631bb15bf7653c019935a519e1edc1c07ceb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
* src/su.c: shell's name must be -su when a su fakes a login.

===================================================================
--- src/su.c	(revision 3193)
+++ src/su.c	(revision 3194)
@@ -1021,7 +1021,7 @@
 		 * 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;