From 86b5b2210f0ea0158af81b9da1f6849ea7dcea5d Mon Sep 17 00:00:00 2001 From: vda Date: Fri, 13 Apr 2007 23:59:52 +0000 Subject: teach find_root_device to deal with /dev/ subdirs (by "Kirill K. Smirnov" ) git-svn-id: svn://busybox.net/trunk/busybox@18435 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- 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 f8207a6cc..63f039df4 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.2.3-55-g6feb