forked from pool/coreutils
d326a25e75
- Avoid segmentation fault in "join -i" with long line input (bnc#798541, VUL-1) - Avoid segmentation fault in "sort -d" and "sort -M" with long line input (bnc#798538, VUL-1) - Avoid segmentation fault in "uniq" with long line input (bnc#796243, VUL-1) - Fix test-suite errors (bnc#798261). OBS-URL: https://build.opensuse.org/request/show/149348 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/coreutils?expand=0&rev=84
35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
From 3c13edc2b9aeab8f24e60a62ab5e8a8db554486f Mon Sep 17 00:00:00 2001
|
|
From: Ludwig Nussel <ludwig.nussel@suse.de>
|
|
Date: Mon, 9 Aug 2010 16:02:30 +0200
|
|
Subject: [PATCH 4/7] set sane default path
|
|
|
|
---
|
|
src/su.c | 12 ++----------
|
|
1 files changed, 2 insertions(+), 10 deletions(-)
|
|
|
|
Index: coreutils-8.17/src/su.c
|
|
===================================================================
|
|
--- coreutils-8.17.orig/src/su.c
|
|
+++ coreutils-8.17/src/su.c
|
|
@@ -112,18 +112,10 @@
|
|
#endif
|
|
|
|
/* The default PATH for simulated logins to non-superuser accounts. */
|
|
-#ifdef _PATH_DEFPATH
|
|
-# define DEFAULT_LOGIN_PATH _PATH_DEFPATH
|
|
-#else
|
|
-# define DEFAULT_LOGIN_PATH ":/usr/ucb:/bin:/usr/bin"
|
|
-#endif
|
|
+#define DEFAULT_LOGIN_PATH "/usr/local/bin:/bin:/usr/bin"
|
|
|
|
/* The default PATH for simulated logins to superuser accounts. */
|
|
-#ifdef _PATH_DEFPATH_ROOT
|
|
-# define DEFAULT_ROOT_LOGIN_PATH _PATH_DEFPATH_ROOT
|
|
-#else
|
|
-# define DEFAULT_ROOT_LOGIN_PATH "/usr/ucb:/bin:/usr/bin:/etc"
|
|
-#endif
|
|
+#define DEFAULT_ROOT_LOGIN_PATH "/usr/sbin:/bin:/usr/bin:/sbin"
|
|
|
|
/* The shell to run if none is given in the user's passwd entry. */
|
|
#define DEFAULT_SHELL "/bin/sh"
|