From 16abcd90aefae8bdb9f7d80a555982dba6ca59b5 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Fri, 13 Apr 2007 23:59:52 +0000 Subject: teach find_root_device to deal with /dev/ subdirs (by "Kirill K. Smirnov" ) --- shell/ash.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/ash.c b/shell/ash.c index f8207a6..63f039d 100644 --- a/shell/ash.c +++ b/shell/ash.c @@ -2293,7 +2293,8 @@ updatepwd(const char *dir) break; } break; - } else if (p[1] == '\0') + } + if (p[1] == '\0') break; /* fall through */ default: -- cgit v1.1