bin/102227: /bin/sh pwd bug after cd into restricted directory
Michael MacInnis
michaelmacinnis at rogers.com
Fri Aug 18 12:50:17 UTC 2006
>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:
More information about the freebsd-bugs
mailing list