NetBSD Problem Report #665
From gnats Thu Dec 29 19:37:56 1994
Received: from pain.lcs.mit.edu (pain.lcs.mit.edu [128.52.46.239]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id TAA13646 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Thu, 29 Dec 1994 19:37:55 -0800
Message-Id: <199412300340.WAA11939@lola-granola.MIT.EDU>
Date: Thu, 29 Dec 1994 22:40:19 -0500
From: jhawk@MIT.EDU
Reply-To: jhawk@panix.com
To: gnats-bugs@NetBSD.ORG
Subject: Bourne shell has CWD in default PATH
X-Send-Pr-Version: 3.2
>Number: 665
>Category: bin
>Synopsis: Bourne shell has CWD in default PATH
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Dec 29 19:50:01 +0000 1994
>Closed-Date: Fri Jan 20 18:21:23 +0000 1995
>Last-Modified:
>Originator: John Hawkinson
>Release: 1.0
>Organization:
MIT
>Environment:
System: NetBSD lola-granola 1.0 NetBSD 1.0 (LOLA-DDB) #56: Sat Dec 17 13:51:12 EST 1994 fsf@lola-granola:/u1/usr/src/sys/arch/i386/compile/LOLA-DDB i386
Still a bug in 29 Dec 1994 -current.
>Description:
The Bourne shell has a ":" in the default PATH, as defined in
/usr/src/bin/sh/var.c:
{&vpath, VSTRFIXED|VTEXTFIXED, "PATH=:/bin:/usr/bin"},
This is inconsistatnt with the mentality that produced the "running
as root with dot in your PATH" message, and is a bit of insecurity/annoyance
nobody needs.
I noted this on current-users some time back, but it really is a bug.
>How-To-Repeat:
Invoke sh with no PATH in your environment.
>Fix:
Remove the colon from the above line of var.c.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: mycroft
State-Changed-When: Fri Jan 20 10:21:23 PST 1995
State-Changed-Why:
Fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.