bug-glibc
[Top][All Lists]
Advanced

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

_PATH_*PATH defines in paths.h


From: Robert Millan
Subject: _PATH_*PATH defines in paths.h
Date: Fri, 18 Oct 2002 09:47:42 +0200
User-agent: Mutt/1.4i

Hello,

Last week I reported a problem with the defines in paths.h, which
is explained below in the quoted message i sent on 10th Oct. This
is my proposed solution for the generic version:

/* Default search path. */
#define _PATH_DEFPATH   "/usr/bin:/bin"
/* All standard utilities path. */
#define _PATH_STDPATH \
        "/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 \
        
"/usr/bin:/bin:/usr/sbin:/sbin:/usr/bin/X11:/usr/local/sbin:/usr/local/\bin"

Any comments about the problems or the proposed solution? if not,
please could you apply that change?

thanks

On Thu, Oct 10, 2002 at 06:27:10AM +0200, Robert Millan wrote:
> 
> >From paths.h:
> 
> /* Default search path. */
> #define _PATH_DEFPATH   "/usr/bin:/bin"
> /* All standard utilities path. */
> #define _PATH_STDPATH \
>         "/usr/bin:/bin:/usr/sbin:/sbin"
> 
> Problems for both GNU and GNU/Linux:
> 
> - _PATH_STDPATH is for normal users where /sbin is not needed
> - _PATH_*PATH_ROOT are for root (and should include /sbin) but
> are not defined here (see the coreutils' su sources)
> - _PATH_STDPATH does not include directories that are in PATH
> by default on most systems, and most users would expect:
> [/usr]/local, [/usr]/X11 and [/usr]/games
> 
> Additional (minor) problem specific to GNU/Hurd:
> 
> - we don't have /usr, thus we don't need it in PATH. the
> Linux-specific paths.h has its own customisations like
> _PATH_KLOG, _PATH_UNIX, etc so i don't see why we can't
> get rid of /usr for GNU/Hurd
> 
> cheers,
> 
> -- 
> Robert Millan
> 
> "5 years from now everyone will be running
> free GNU on their 200 MIPS, 64M SPARCstation-5"
> 
>               Andrew S. Tanenbaum, 30 Jan 1992

-- 
Robert Millan

"5 years from now everyone will be running
free GNU on their 200 MIPS, 64M SPARCstation-5"

              Andrew S. Tanenbaum, 30 Jan 1992




reply via email to

[Prev in Thread] Current Thread [Next in Thread]