summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYousong Zhou2019-10-25 10:51:49 +0000
committerJohn Crispin2019-10-27 11:25:12 +0000
commiteda8b3fbcc0eb0752c4d02276950c3b977eac259 (patch)
tree6a8d140b6e79be3863e74ba3c1aa6bcc4de29921
parentd05276dc1d6de119da518d62930b9a8ef55ef7e9 (diff)
downloadfstools-eda8b3fbcc0eb0752c4d02276950c3b977eac259.tar.gz
block: use fsck.fat instead of dosfsck
Dosfsck is only available when --enable-compat-symlinks was given when configuring dosfstools. These symlinks are not enabled in OpenWrt dosfstools package Suggested by Reiner Otto in FS#2408 Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
-rw-r--r--block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block.c b/block.c
index 39212d2..a849500 100644
--- a/block.c
+++ b/block.c
@@ -708,7 +708,7 @@ static void check_filesystem(struct probe_info *pr)
struct stat statbuf;
const char *e2fsck = "/usr/sbin/e2fsck";
const char *f2fsck = "/usr/sbin/fsck.f2fs";
- const char *dosfsck = "/usr/sbin/dosfsck";
+ const char *fatfsck = "/usr/sbin/fsck.fat";
const char *btrfsck = "/usr/bin/btrfsck";
const char *ntfsck = "/usr/bin/ntfsfix";
const char *ckfs;
@@ -718,7 +718,7 @@ static void check_filesystem(struct probe_info *pr)
return;
if (!strncmp(pr->type, "vfat", 4)) {
- ckfs = dosfsck;
+ ckfs = fatfsck;
} else if (!strncmp(pr->type, "f2fs", 4)) {
ckfs = f2fsck;
} else if (!strncmp(pr->type, "ext", 3)) {