void-packages/srcpkgs/lightdm/patches/1.32.0--adjust-PATH-for-usr...

23 lines
897 B
Diff

From 389d9e09217ee598674ff7d6df69563be51cbfe6 Mon Sep 17 00:00:00 2001
From: Piotr Wójcik <chocimier@tlen.pl>
Date: Sat, 1 Jul 2023 17:30:54 +0200
Subject: adjust-PATH-for-usrmerge
diff --git a/src/session-child.c b/src/session-child.c
index 112daab..af28c48 100644
--- a/src/session-child.c
+++ b/src/session-child.c
@@ -394,7 +394,7 @@ session_child_run (int argc, char **argv)
else
{
/* Set POSIX variables */
- pam_putenv (pam_handle, "PATH=/usr/local/bin:/usr/bin:/bin");
+ pam_putenv (pam_handle, "PATH=/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin");
pam_putenv (pam_handle, g_strdup_printf ("USER=%s", username));
pam_putenv (pam_handle, g_strdup_printf ("LOGNAME=%s", username));
pam_putenv (pam_handle, g_strdup_printf ("HOME=%s", user_get_home_directory (user)));
--
2.41.0