diff options
author | steve <steve@FreeBSD.org> | 1996-12-23 22:29:03 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1996-12-23 22:29:03 +0000 |
commit | dfe5d3d364470874b0343a6ed0e31afd01de04b7 (patch) | |
tree | 81005332cf59e971c2b671ab5c609811af0dfcb9 /bin/sh | |
parent | 6da76fc1dd6a5125d867c9e73c56f9066c2b40b5 (diff) | |
download | FreeBSD-src-dfe5d3d364470874b0343a6ed0e31afd01de04b7.zip FreeBSD-src-dfe5d3d364470874b0343a6ed0e31afd01de04b7.tar.gz |
Oops, it needs little more caulk to get it right.
Diffstat (limited to 'bin/sh')
-rw-r--r-- | bin/sh/cd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/sh/cd.c b/bin/sh/cd.c index caf8972..56439ac 100644 --- a/bin/sh/cd.c +++ b/bin/sh/cd.c @@ -33,7 +33,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: cd.c,v 1.9 1996/12/23 05:31:48 steve Exp $ + * $Id: cd.c,v 1.10 1996/12/23 22:16:35 steve Exp $ */ #ifndef lint @@ -237,5 +237,5 @@ getpwd() { if (curdir) return (curdir); - return (getcwd(NULL, 0)); + return ((curdir = getcwd(NULL, 0))); } |