diff options
-rw-r--r-- | libbb/find_mount_point.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/find_mount_point.c b/libbb/find_mount_point.c index 56637ad92..9676b5f52 100644 --- a/libbb/find_mount_point.c +++ b/libbb/find_mount_point.c | |||
@@ -30,7 +30,8 @@ struct mntent* FAST_FUNC find_mount_point(const char *name, int subdir_too) | |||
30 | 30 | ||
31 | devno_of_name = s.st_dev; | 31 | devno_of_name = s.st_dev; |
32 | block_dev = 0; | 32 | block_dev = 0; |
33 | if (S_ISBLK(s.st_mode)) { | 33 | /* Why S_ISCHR? - UBI volumes use char devices, not block */ |
34 | if (S_ISBLK(s.st_mode) || S_ISCHR(s.st_mode)) { | ||
34 | devno_of_name = s.st_rdev; | 35 | devno_of_name = s.st_rdev; |
35 | block_dev = 1; | 36 | block_dev = 1; |
36 | } | 37 | } |