Date: Sun, 24 Feb 2008 16:50:55 +0000 (UTC) From: Stefan Farfeleder <stefanf@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/sh cd.c Message-ID: <200802241650.m1OGotF9063806@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
stefanf 2008-02-24 16:50:55 UTC FreeBSD src repository Modified files: bin/sh cd.c Log: 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 Revision Changes Path 1.36 +45 -38 src/bin/sh/cd.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802241650.m1OGotF9063806>