NetBSD Problem Report #7944
Received: (qmail 7177 invoked from network); 9 Jul 1999 02:08:34 -0000
Message-Id: <199907090208.WAA20520@milou.gw.com>
Date: Thu, 8 Jul 1999 22:08:18 -0400 (EDT)
From: Kimmo Suominen <kim@tac.nyc.ny.us>
To: gnats-bugs@gnats.netbsd.org
Subject: getcwd broken
X-Send-Pr-Version: 3.95
>Number: 7944
>Category: kern
>Synopsis: getcwd broken
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: sommerfeld
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Jul 08 19:20:01 +0000 1999
>Closed-Date: Sun Jul 11 10:10:09 +0000 1999
>Last-Modified: Sun Jul 11 10:10:51 +0000 1999
>Originator: Kimmo Suominen
>Release: 1999-06-27
>Organization:
<A HREF="http://www.tac.nyc.ny.us/~kim/">Kimmo Suominen</A>
>Environment:
System: NetBSD milou.gw.com 1.4D NetBSD 1.4D (TAC-GENERIC) #19: Sun Jun 27 17:42:29 EDT 1999 kim@hrothgar.gw.com:/net/hrothgar/src-1/NetBSD/cvsroot/src/sys/arch/i386/compile/TAC-GENERIC i386
>Description:
The current implementation of getcwd fails in directories where
the process only has execute rights (no read rights). Running
pwd returns "permission denied" instead of printing the working
directory.
>How-To-Repeat:
milou:~/tmp> mkdir test
milou:~/tmp> chmod a=x test
milou:~/tmp> cd test
milou:~/tmp/test> /bin/pwd
pwd: : Permission denied
Exit 1
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->sommerfeld
Responsible-Changed-By: sommerfeld
Responsible-Changed-When: Fri Jul 9 01:30:25 PDT 1999
Responsible-Changed-Why:
this one's mine
permission checking in the kernel getcwd is more conservative than the
userspace getcwd; it should not require read access the process's cwd..
State-Changed-From-To: open->closed
State-Changed-By: sommerfeld
State-Changed-When: Sun Jul 11 03:10:09 PDT 1999
State-Changed-Why:
Fixed in -current.
>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.