diff options
| author | Steve Price <steve@FreeBSD.org> | 1996-12-23 22:29:03 +0000 |
|---|---|---|
| committer | Steve Price <steve@FreeBSD.org> | 1996-12-23 22:29:03 +0000 |
| commit | 8df71a5a7d38e5c4210f75221243baf4d34014d9 (patch) | |
| tree | 81005332cf59e971c2b671ab5c609811af0dfcb9 /bin | |
| parent | 79e02527efb9c08f4c49976f71dd1c06745af74d (diff) | |
Notes
Diffstat (limited to 'bin')
| -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 caf8972416e3b..56439acdf6c0e 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))); } |
