diff options
-rw-r--r-- | misc/e4defrag.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/misc/e4defrag.c b/misc/e4defrag.c index 424e0cae..8b0894f7 100644 --- a/misc/e4defrag.c +++ b/misc/e4defrag.c @@ -430,6 +430,8 @@ static int is_ext4(const char *file) } while ((mnt = getmntent(fp)) != NULL) { + if (mnt->mnt_fsname[0] != '/') + continue; len = strlen(mnt->mnt_dir); ret = memcmp(file_path, mnt->mnt_dir, len); if (ret != 0) |