[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#158497: _PATH_*PATH variables in <paths.h> don't conform to debian standards



Package: libc6-dev
Version: 2.2.5-14
Severity: normal
Tags: patch

Hello,

Looking at paths.h:

/* Default search path. */
#define _PATH_DEFPATH   "/usr/bin:/bin"
/* All standard utilities path. */
#define _PATH_STDPATH \
        "/usr/bin:/bin:/usr/sbin:/sbin"

This is suposed to contain the "default" and "standard" paths
for system users. Paths in Debian are defined by the ENV_PATH
and ENV_SUPATH variables in /etc/login.defs, which default to:

ENV_SUPATH      PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin\:/usr/local/bin
ENV_PATH        PATH=/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games

I think these are saner and the GNU project should accept them for
glibc. Even if they don't we should have them in Debian, for they
are the default here as choosen in /etc/login.defs.

I made up a fixed version where _PATH_STDPATH contains Debian's
requirements and _PATH_DEFPATH a set of essential directories,
excluding X11, local and games.

Also, _PATH_*PATH_ROOT are missing but used in some places so
i'm including them too.

Here is a patch:

--- paths.h.old	2002-08-27 17:11:18.000000000 +0200
+++ paths.h	2002-08-27 17:42:24.000000000 +0200
@@ -36,7 +36,13 @@
 #define	_PATH_DEFPATH	"/usr/bin:/bin"
 /* All standard utilities path. */
 #define	_PATH_STDPATH \
-	"/usr/bin:/bin:/usr/sbin:/sbin"
+	"/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games"
+
+/* Default search path for root. */
+#define	_PATH_DEFPATH_ROOT	"/usr/bin:/bin:/usr/sbin:/sbin"
+/* All standard utilities path for root. */
+#define	_PATH_STDPATH_ROOT \
+	"/sbin:/bin:/usr/sbin:/usr/bin:/usr/bin/X11:/usr/local/sbin:/usr/local/bin"
 
 #define	_PATH_BSHELL	"/bin/sh"
 #define	_PATH_CONSOLE	"/dev/console"


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux aragorn 2.2.21 #1 Thu Aug 8 13:53:32 CEST 2002 i586
Locale: LANG=ca_ES.ISO-8859-1, LC_CTYPE=ca_ES.ISO-8859-1

Versions of packages libc6-dev depends on:
ii  libc6                         2.2.5-14   GNU C Library: Shared libraries an

-- no debconf information




Reply to: