aboutsummaryrefslogtreecommitdiff
path: root/applets/busybox.mksuid
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2016-10-26 19:56:05 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2016-10-26 19:56:05 +0200
commit0e081d01a8ae37df11af612eb65d858c1c0f28be (patch)
tree7951b68b37925ca81c6fc17b78387c883feab868 /applets/busybox.mksuid
parenta318bba199a08d65c6fb804e26d0993068a4ba16 (diff)
downloadbusybox-0e081d01a8ae37df11af612eb65d858c1c0f28be.tar.gz
ash: [CD] Lookup PWD after going through CDPATH
Upstream commit: Date: Mon, 31 Aug 2009 22:06:41 +1000 [CD] Lookup PWD after going through CDPATH On Tue, Jul 14, 2009 at 09:39:03PM +0000, Eric Blake wrote: > For the cd command, POSIX 2008 requires that after all pathnames in CDPATH > have been tested and failed in step 5, then step 6 interprets the directory > argument relative to PWD. In other words, this demonstrates a bug: > > $ dash -c 'cd /tmp; mkdir -p foo; CDPATH=oops; cd foo; echo $?; pwd' > cd: 1: can't cd to foo > 2 > /tmp > > while bash gets it correct: > > $ bash -c 'cd /tmp; mkdir -p foo; CDPATH=oops; cd foo; echo $?; pwd' > 0 > /tmp/foo This patch fixes the problem. Reported-by: Eric Blake <ebb9@byu.net> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> function old new delta cdcmd 667 680 +13 Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'applets/busybox.mksuid')
0 files changed, 0 insertions, 0 deletions