projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
libarchive: open_zipped() does not need to check extensions for e.g. gzip
[oweals/busybox.git]
/
libbb
/
find_mount_point.c
diff --git
a/libbb/find_mount_point.c
b/libbb/find_mount_point.c
index 56637ad923502a0d52a4684558c56fb8cd466940..9676b5f52c6cf8b8da4937f713a7de007c3df9bc 100644
(file)
--- 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)
devno_of_name = s.st_dev;
block_dev = 0;
- if (S_ISBLK(s.st_mode)) {
+ /* Why S_ISCHR? - UBI volumes use char devices, not block */
+ if (S_ISBLK(s.st_mode) || S_ISCHR(s.st_mode)) {
devno_of_name = s.st_rdev;
block_dev = 1;
}