diff --git a/interfaces/innerkits/fs_manager/fstab.c b/interfaces/innerkits/fs_manager/fstab.c index ddd29156faf2d7013584941ab562f89be02c781d..c79e689a9efe5f41dfc7c85cb53c2a7dd21ac7c5 100644 --- a/interfaces/innerkits/fs_manager/fstab.c +++ b/interfaces/innerkits/fs_manager/fstab.c @@ -267,7 +267,7 @@ FstabItem *FindFstabItemForPath(Fstab fstab, const char *path) { FstabItem *item = NULL; - if (path == NULL || *path == '\0') { + if (path == NULL || *path == '\0' || *path != '/') { return NULL; }