summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2008-02-24 16:50:55 +0000
committerstefanf <stefanf@FreeBSD.org>2008-02-24 16:50:55 +0000
commitfe9202bf0f56d3e502455e35dcc4eb1a964fba78 (patch)
tree86a21737db7034296635cfc37c975e23bd215315 /tools
parent0d54671a48443b15ac601a80e192bc4c8faed7f9 (diff)
downloadFreeBSD-src-fe9202bf0f56d3e502455e35dcc4eb1a964fba78.zip
FreeBSD-src-fe9202bf0f56d3e502455e35dcc4eb1a964fba78.tar.gz
Split updatepwd() into two smaller functions. The first one, findpwd(),
computes the new path and the second one, updatepwd(), updates the variables PWD, OLDPWD and the path used for the pwd builtin according to the new directory. For a logical directory change, chdir() is now called between those two functions, no longer causing wrong values to be stored in PWD etc. if it fails. PR: 64990, 101316, 120571
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud