diff options
Diffstat (limited to 'bin/sh/cd.c')
-rw-r--r-- | bin/sh/cd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/cd.c b/bin/sh/cd.c index e458c1f0ae209..615ac7a38fd20 100644 --- a/bin/sh/cd.c +++ b/bin/sh/cd.c @@ -217,7 +217,7 @@ top: STPUTC('\0', p); p = grabstackstr(p); INTOFF; - if (chdir(p) < 0) { + if (chdir(*p ? p : ".") < 0) { INTON; return -1; } |