From owner-freebsd-bugs@FreeBSD.ORG Tue Feb 12 22:10:01 2008 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36BCC16A46E for ; Tue, 12 Feb 2008 22:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 19C8213C457 for ; Tue, 12 Feb 2008 22:10:01 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m1CMA00B081195 for ; Tue, 12 Feb 2008 22:10:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m1CMA0GU081194; Tue, 12 Feb 2008 22:10:00 GMT (envelope-from gnats) Resent-Date: Tue, 12 Feb 2008 22:10:00 GMT Resent-Message-Id: <200802122210.m1CMA0GU081194@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Robinson Sathaseevan Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 27CE616A418 for ; Tue, 12 Feb 2008 22:05:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 1B47613C461 for ; Tue, 12 Feb 2008 22:05:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m1CM3M3h054484 for ; Tue, 12 Feb 2008 22:03:22 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.2/8.14.1/Submit) id m1CM3MU7054483; Tue, 12 Feb 2008 22:03:22 GMT (envelope-from nobody) Message-Id: <200802122203.m1CM3MU7054483@www.freebsd.org> Date: Tue, 12 Feb 2008 22:03:22 GMT From: Robinson Sathaseevan To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/120571: pwd reports false path even when change to directory fails X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2008 22:10:01 -0000 >Number: 120571 >Category: misc >Synopsis: pwd reports false path even when change to directory fails >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Feb 12 22:10:00 UTC 2008 >Closed-Date: >Last-Modified: >Originator: Robinson Sathaseevan >Release: FreeBSD 6.3 >Organization: None >Environment: FreeBSD quad.phub.net.cable.rogers.com 6.3-RELEASE FreeBSD 6.3-RELEASE #0: Wed Jan 16 04:45:45 UTC 2008 root@dessler.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP i386 >Description: If a directory has permissions drwx------ and I try to change into it without being the owner, then the cd command fails. But pwd thinks I successfully changed into that directory and incorrectly reports as such. >How-To-Repeat: $ whoami roby $ pwd /usr/local/etc $ ls -ld s* drwx------ 2 root wheel 512 Feb 12 11:30 samba -rw-r--r-- 1 root wheel 3312 Feb 12 11:34 screenrc -r--r--r-- 1 root wheel 10313 Feb 12 11:30 smb.conf -r--r--r-- 1 root wheel 10313 Feb 12 11:30 smb.conf.sample -r--r----- 1 root wheel 1148 Feb 12 09:17 sudoers -r--r--r-- 1 root wheel 1150 Nov 30 20:20 sudoers.default $ cd samba cd: can't cd to samba $ pwd /usr/local/etc/samba $ ls -ld s* drwx------ 2 root wheel 512 Feb 12 11:30 samba -rw-r--r-- 1 root wheel 3312 Feb 12 11:34 screenrc -rw-r--r-- 1 root wheel 10313 Feb 12 11:30 smb.conf -r--r--r-- 1 root wheel 10313 Feb 12 11:30 smb.conf.sample -r--r----- 1 root wheel 1148 Feb 12 09:17 sudoers -r--r--r-- 1 root wheel 1150 Nov 30 20:20 sudoers.default $ cd .. $ pwd /usr/local/etc $ >Fix: n/a >Release-Note: >Audit-Trail: >Unformatted: