X-Git-Url: http://git.archive.openwrt.org/?p=project%2Ffstools.git;a=blobdiff_plain;f=libfstools%2Ffind.c;h=72a2b4c70736adc482cb7d6a21225c241401b16c;hp=0440052bf51c42bd7be2ff876e9ddd1a228263b4;hb=4abf9de460253771fabef2b2cdf5d7a8b457bd1d;hpb=d40e03eb5fbfd8658dd30c09af0f81d235182996 diff --git a/libfstools/find.c b/libfstools/find.c index 0440052..72a2b4c 100644 --- a/libfstools/find.c +++ b/libfstools/find.c @@ -77,7 +77,7 @@ find_mount(char *mp) } char* -find_mount_point(char *block, int mtd_only) +find_mount_point(char *block, int root_only) { FILE *fp = fopen("/proc/mounts", "r"); static char line[256]; @@ -100,7 +100,8 @@ find_mount_point(char *block, int mtd_only) *t = '\0'; t++; - if (mtd_only && + if (root_only && + strncmp(t, "f2fs", 4) && strncmp(t, "jffs2", 5) && strncmp(t, "ubifs", 5)) { fclose(fp);