diff options
author | stefanf <stefanf@FreeBSD.org> | 2008-02-24 16:50:55 +0000 |
---|---|---|
committer | stefanf <stefanf@FreeBSD.org> | 2008-02-24 16:50:55 +0000 |
commit | fe9202bf0f56d3e502455e35dcc4eb1a964fba78 (patch) | |
tree | 86a21737db7034296635cfc37c975e23bd215315 /usr.bin/ypwhich/Makefile | |
parent | 0d54671a48443b15ac601a80e192bc4c8faed7f9 (diff) | |
download | FreeBSD-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 'usr.bin/ypwhich/Makefile')
0 files changed, 0 insertions, 0 deletions