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

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



Your message dated Wed, 12 Mar 2003 12:28:28 +0900
with message-id <80smtt5kmb.wl@oris.opensource.jp>
and subject line Bug#158497: _PATH_*PATH variables in <paths.h> don't conform to debian standards
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 27 Aug 2002 16:02:57 +0000
>From rmh@khazad.dyndns.org Tue Aug 27 11:02:57 2002
Return-path: <rmh@khazad.dyndns.org>
Received: from 80-24-13-86.uc.nombres.ttd.es (getyouriso.dyndns.org) [80.24.13.86] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 17jins-0003Ex-00; Tue, 27 Aug 2002 11:02:57 -0500
Received: from aragorn ([192.168.0.3])
	by getyouriso.dyndns.org with esmtp (Exim 3.35 #1 (Debian))
	id 17jiwI-0004tn-00; Tue, 27 Aug 2002 18:11:34 +0200
Received: from rmh by aragorn with local (Exim 3.35 #1 (Debian))
	id 17jiqm-0001j2-00; Tue, 27 Aug 2002 18:05:52 +0200
Subject: _PATH_*PATH variables in <paths.h> don't conform to debian standards
From: "Robert Millan" <zeratul2@wanadoo.es>
To: "Debian Bug Tracking System" <submit@bugs.debian.org>
X-Mailer: reportbug 1.99.50
Date: Tue, 27 Aug 2002 18:05:42 +0200
Message-Id: <E17jiqm-0001j2-00@aragorn>
Sender: Robert Millan <rmh@khazad.dyndns.org>
Delivered-To: submit@bugs.debian.org

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


---------------------------------------
Received: (at 158497-done) by bugs.debian.org; 12 Mar 2003 03:28:30 +0000
>From gotom@debian.or.jp Tue Mar 11 21:28:30 2003
Return-path: <gotom@debian.or.jp>
Received: from oris.opensource.jp (oris.opensource.gr.jp) [218.44.239.73] (postfix)
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 18swus-0008Vy-00; Tue, 11 Mar 2003 21:28:30 -0600
Received: from oris.opensource.jp (oris.opensource.jp [218.44.239.73])
	by oris.opensource.gr.jp (Postfix) with ESMTP
	id 6FD81C33C6; Wed, 12 Mar 2003 12:28:28 +0900 (JST)
Date: Wed, 12 Mar 2003 12:28:28 +0900
Message-ID: <80smtt5kmb.wl@oris.opensource.jp>
From: GOTO Masanori <gotom@debian.or.jp>
To: Robert Millan <zeratul2@wanadoo.es>
Cc: GOTO Masanori <gotom@debian.or.jp>, 158497-done@bugs.debian.org
Subject: Re: Bug#158497: _PATH_*PATH variables in <paths.h> don't conform to debian standards
In-Reply-To: <[🔎] 20030311122228.GF510@aragorn>
References: <E17jiqm-0001j2-00@aragorn>
	<[🔎] 80zno25hs2.wl@oris.opensource.jp>
	<[🔎] 20030311122228.GF510@aragorn>
User-Agent: Wanderlust/2.9.9 (Unchained Melody) SEMI/1.14.3 (Ushinoya)
 FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.2
 (i386-debian-linux-gnu) MULE/5.0 (SAKAKI)
MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya")
Content-Type: text/plain; charset=US-ASCII
Delivered-To: 158497-done@bugs.debian.org
X-Spam-Status: No, hits=-1.8 required=4.0
	tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,
	      USER_AGENT
	version=2.44
X-Spam-Level: 

At Tue, 11 Mar 2003 13:22:28 +0100,
Robert Millan wrote:
> > _PATH_STDPATH is derived from BSD.  I guess in past there have been
> > occured by some reason, but it's obsolete and only there for
> > historical purpose.
> 
> then there's a problem, because GNU coreutils uses it. what is the correct
> way now to obtain the default system path, for root and for user?

GNU coreutils 4.5.9 uses _PATH_STDPATH no longer.

> if coreutils can be fixed then it's ok for me to close this bug.

OK, I close this bug.

Regards,
-- gotom



Reply to: