diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/sh/cd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/sh/cd.c b/bin/sh/cd.c index 24af3e1..d52c9b8 100644 --- a/bin/sh/cd.c +++ b/bin/sh/cd.c @@ -124,8 +124,9 @@ cdcmd(int argc, char **argv) * XXX - rethink */ if (p[0] == '.' && p[1] == '/' && p[2] != '\0') - p += 2; - print = strcmp(p, dest); + print = strcmp(p + 2, dest); + else + print = strcmp(p, dest); } if (docd(p, print, phys) >= 0) return 0; |