summaryrefslogtreecommitdiffstats
path: root/krb5-1.12-ksu-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'krb5-1.12-ksu-path.patch')
-rw-r--r--krb5-1.12-ksu-path.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/krb5-1.12-ksu-path.patch b/krb5-1.12-ksu-path.patch
new file mode 100644
index 0000000..65552c9
--- /dev/null
+++ b/krb5-1.12-ksu-path.patch
@@ -0,0 +1,12 @@
+Set the default PATH to the one set by login.
+
+--- krb5/src/clients/ksu/Makefile.in
++++ krb5/src/clients/ksu/Makefile.in
+@@ -1,6 +1,6 @@
+ mydir=clients$(S)ksu
+ BUILDTOP=$(REL)..$(S)..
+-DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/bin /local/bin"'
++DEFINES = -DGET_TGT_VIA_PASSWD -DPRINC_LOOK_AHEAD -DCMD_PATH='"/usr/local/sbin /usr/local/bin /sbin /bin /usr/sbin /usr/bin"'
+
+ KSU_LIBS=@KSU_LIBS@
+ PAM_LIBS=@PAM_LIBS@