Subject: lib/25077: getcwd() doesn't work if a parent directory isn't readable
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <bigmac@vim.hu>
List: netbsd-bugs
Date: 04/06/2004 23:57:14
>Number:         25077
>Category:       lib
>Synopsis:       getcwd() doesn't work if a parent directory isn't readable
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 06 21:58:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        NetBSD 2.0_BETA
>Organization:
>Environment:
System: NetBSD concorde 2.0_BETA NetBSD 2.0_BETA (netbsd.kern) #1: Mon Mar 29 22:15:22 CEST 2004 bigmac@concorde:/maxtor/obj/sys/arch/i386/compile/netbsd.kern i386
Architecture: i386
Machine: i386
>Description:
Getcwd() returns ``Permission denied'' if a parent directory isn't
readable (it's not +r, only +x), even if the current directory is.
It may break several userland applications.
>How-To-Repeat:
$ mkdir x x/y
$ chmod 111 x
$ cd x/y
$ /bin/pwd
>Fix:
Has it got to be fixed, anyway?
>Release-Note:
>Audit-Trail:
>Unformatted: