feat: fstat now handle symbolic link
[lunaix-os.git] / lunaix-os / kernel / fs / mount.c
index 12e1d4b94c273acc87df26203f8ea96c2b611711..629a480f615d2d034c1a1aae2e0fe3c3abe5292e 100644 (file)
@@ -137,7 +137,7 @@ vfs_mount_at(const char* fs_name,
         return ENOTBLK;
     }
 
-    if (mnt_point->inode && !(mnt_point->inode->itype & VFS_IFDIR)) {
+    if (mnt_point->inode && (mnt_point->inode->itype & F_MFILE)) {
         return ENOTDIR;
     }