NetBSD Problem Report #256

From gnats  Fri May 20 11:49:07 1994
Received: from uran.informatik.uni-bonn.de (uran.informatik.uni-bonn.de [131.220.8.49]) by sun-lamp.cs.berkeley.edu (8.6.9/8.6.9) with ESMTP id LAA17374 for <gnats-bugs@sun-lamp.cs.berkeley.edu>; Fri, 20 May 1994 11:49:02 -0700
Message-Id: <m0q4ZjL-001MF5C@oink.rhein.de>
Date: Fri, 20 May 94 20:55 MET DST
From: noses@oink.rhein.de
Reply-To: noses@uran.informatik.uni-bonn.de
To: gnats-bugs@sun-lamp.cs.berkeley.edu
Subject: sh/ warning about "." in path
X-Send-Pr-Version: 3.2

>Number:         256
>Category:       bin
>Synopsis:       sh is warning me about having "." in the path but I don't
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jtc
>State:          closed
>Class:          mistaken
>Submitter-Id:   net
>Arrival-Date:   Fri May 20 11:50:01 +0000 1994
>Closed-Date:    Sun Jun 12 18:22:21 +0000 1994
>Last-Modified:  
>Originator:     Noses
>Release:        please see "ls -al"
>Organization:
"	"
>Environment:
	 i386, -current



>Description:

sh is warning me like
sh: warning: running as root with dot in PATH
although I don't have it in my path - even in single user mode

>How-To-Repeat:

run /bin/sh

>Fix:

Remove the PATH variable from your environment.

Sources for that sh:

total 1030
drwxrwxr-x   5 root  wheel   1536 May 18 12:18 ./
drwxrwxr-x  32 root  wheel    512 May 13 00:59 ../
drwxr-xr-x   2 root  root     512 Sep 24  1993 CVS/
-rw-r--r--   1 root  wheel   1324 May 15 12:03 Makefile
-rw-r--r--   1 root  wheel   1313 May 14 10:26 Makefile.orig
-rw-r--r--   1 root  wheel  17160 May 12 12:14 TOUR
-rw-r--r--   1 root  wheel   6137 May 11 19:01 alias.c
-rw-r--r--   1 root  wheel   2084 May 11 19:02 alias.h
-rw-r--r--   1 root  wheel   4499 May 11 19:02 arith.y
-rw-r--r--   1 root  wheel   3283 May 11 19:02 arith_lex.l
drwxrwxr-x   3 root  wheel    512 May 12 12:15 bltin/
-rw-r--r--   1 root  wheel   3308 May 15 12:03 builtins
-rw-r--r--   1 root  wheel   8468 May 13 13:32 cd.c
-rw-r--r--   1 root  wheel   4055 May 12 12:14 errmsg.c
-rw-r--r--   1 root  wheel   2089 May 12 12:14 errmsg.h
-rw-r--r--   1 root  wheel   6195 May 13 13:32 error.c
-rw-r--r--   1 root  wheel   4015 May 12 12:14 error.h
-rw-r--r--   1 root  wheel  20636 May 15 12:03 eval.c
-rw-r--r--   1 root  wheel   2733 May 12 12:14 eval.h
-rw-r--r--   1 root  wheel  17755 May 13 13:32 exec.c
-rw-r--r--   1 root  wheel   2785 May 12 12:14 exec.h
-rw-r--r--   1 root  wheel  23480 May 13 13:32 expand.c
-rw-r--r--   1 root  wheel   2748 May 12 12:14 expand.h
drwxrwxr-x   3 root  wheel    512 May 12 12:15 funcs/
-rw-r--r--   1 root  wheel  10002 May 13 13:32 histedit.c
-rw-r--r--   1 root  wheel   2101 May 12 12:14 init.h
-rw-r--r--   1 root  wheel  10789 May 15 12:03 input.c
-rw-r--r--   1 root  wheel   3021 May 12 12:14 input.h
-rw-r--r--   1 root  wheel  22887 May 13 13:32 jobs.c
-rw-r--r--   1 root  wheel   3549 May 12 12:14 jobs.h
-rw-r--r--   1 root  wheel   2264 May 12 12:14 machdep.h
-rw-r--r--   1 root  wheel   3613 May 12 12:14 mail.c
-rw-r--r--   1 root  wheel   2026 May 12 12:14 mail.h
-rw-r--r--   1 root  wheel   7333 May 13 13:32 main.c
-rw-r--r--   1 root  wheel   2189 May 12 12:14 main.h
-rw-r--r--   1 root  wheel   7036 May 13 13:32 memalloc.c
-rw-r--r--   1 root  wheel   3522 May 12 12:14 memalloc.h
-rw-r--r--   1 root  wheel   5123 May 13 13:32 miscbltin.c
-rw-r--r--   1 root  wheel   3048 May 15 12:03 mkbuiltins
-rw-r--r--   1 root  wheel  11421 May 12 12:14 mkinit.c
-rwxr-xr-x   1 root  wheel  40739 May 12 18:50 mknodes*
-rw-r--r--   1 root  wheel  10540 May 12 12:14 mknodes.c
-rwxr-xr-x   1 root  wheel  13124 May 14 10:22 mksyntax*
-rw-r--r--   1 root  wheel   9630 May 12 12:14 mksyntax.c
-rw-r--r--   1 root  wheel   3055 May 12 12:14 mktokens
-rw-r--r--   1 root  wheel   1963 May 11 19:01 myhistedit.h
-rw-r--r--   1 root  wheel   3535 May 13 13:32 mystring.c
-rw-r--r--   1 root  wheel   2301 May 12 12:14 mystring.h
-rw-r--r--   1 root  wheel   9100 May 12 20:06 nodes.c
-rw-r--r--   1 root  wheel   4281 May 12 12:14 nodes.c.pat
-rw-r--r--   1 root  wheel   2279 May 12 20:06 nodes.h
-rw-r--r--   1 root  wheel   5267 May 12 12:14 nodetypes
lrwxr-xr-x   1 root  wheel     15 May 19 00:23 obj@ -> /usr/obj/bin/sh
-rw-r--r--   1 root  wheel   9695 May 15 12:03 options.c
-rw-r--r--   1 root  wheel   3667 May 12 12:14 options.h
-rw-r--r--   1 root  wheel  10644 May 13 13:32 output.c
-rw-r--r--   1 root  wheel   3148 May 13 13:32 output.h
-rw-r--r--   1 root  wheel  31062 May 18 12:18 parser.c
-rw-r--r--   1 root  wheel   3187 May 12 12:14 parser.h
-rw-r--r--   1 root  wheel   8031 May 12 12:14 redir.c
-rw-r--r--   1 root  wheel   2389 May 12 12:14 redir.h
-rw-r--r--   1 root  wheel  42800 May 12 12:14 sh.1
-rw-r--r--   1 root  wheel   3062 May 12 12:14 shell.h
-rw-r--r--   1 root  wheel   7502 May 12 12:14 show.c
-rw-r--r--   1 root  wheel  13169 May 14 10:25 syntax.c
-rw-r--r--   1 root  wheel   1718 May 14 10:25 syntax.h
-rw-r--r--   1 root  wheel   1199 May 14 10:36 token.def
-rw-r--r--   1 root  wheel   7261 May 13 13:32 trap.c
-rw-r--r--   1 root  wheel   2258 May 12 12:14 trap.h
-rw-r--r--   1 root  wheel  13721 May 15 12:03 var.c
-rw-r--r--   1 root  wheel   3972 May 12 12:15 var.h
>Release-Note:
>Audit-Trail:

State-Changed-From-To: open->analyzed
State-Changed-By: jtc
State-Changed-When: Sat May 21 09:22:44 1994
State-Changed-Why:
I have examined the code and cannot determine how it can get this wrong. 
I will write the submitter and see exactly how his PATH variable is 
set.

Responsible-Changed-From-To: gnats-admin->jtc
Responsible-Changed-By: jtc
Responsible-Changed-When: Sat May 21 09:45:24 1994
Responsible-Changed-Why:
Taking responsibilty for this bug.

State-Changed-From-To: analyzed->closed
State-Changed-By: jtc
State-Changed-When: Sun Jun 12 18:22:21 1994
State-Changed-Why:
The submitter had a bad email address, and I was unable to contact him
for clarification.  I've studied the code in detail, and it is very 
likely that he had a leading, trailing or double colon in his path
which is semantically the "same" as a dot.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.