Date: Fri, 18 Aug 2006 12:42:39 GMT From: Michael MacInnis <michaelmacinnis@rogers.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/102227: /bin/sh pwd bug after cd into restricted directory Message-ID: <200608181242.k7ICgdcG003585@www.freebsd.org> Resent-Message-ID: <200608181250.k7ICoFlU042282@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 102227
>Category: bin
>Synopsis: /bin/sh pwd bug after cd into restricted directory
>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: Fri Aug 18 12:50:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Michael MacInnis
>Release: 5.3-RELEASE
>Organization:
>Environment:
>Description:
>How-To-Repeat:
>Fix:
Adding a call to updatepwd(NULL) in cd.c seems to fix the problem:
@@ -202,6 +202,7 @@
INTOFF;
if (updatepwd(badstat ? NULL : dest) < 0 || chdir(curdir) < 0) {
+ updatepwd(NULL);
INTON;
return (-1);
}
>Release-Note:
>Audit-Trail:
>Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608181242.k7ICgdcG003585>
