summaryrefslogtreecommitdiffstats
path: root/source/a/shadow/patches/r3194.diff
diff options
context:
space:
mode:
Diffstat (limited to 'source/a/shadow/patches/r3194.diff')
-rw-r--r--source/a/shadow/patches/r3194.diff15
1 files changed, 15 insertions, 0 deletions
diff --git a/source/a/shadow/patches/r3194.diff b/source/a/shadow/patches/r3194.diff
new file mode 100644
index 000000000..0eff631bb
--- /dev/null
+++ b/source/a/shadow/patches/r3194.diff
@@ -0,0 +1,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;
+