git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
feat: fstat now handle symbolic link
[lunaix-os.git]
/
lunaix-os
/
kernel
/
fs
/
mount.c
diff --git
a/lunaix-os/kernel/fs/mount.c
b/lunaix-os/kernel/fs/mount.c
index 12e1d4b94c273acc87df26203f8ea96c2b611711..629a480f615d2d034c1a1aae2e0fe3c3abe5292e 100644
(file)
--- a/
lunaix-os/kernel/fs/mount.c
+++ b/
lunaix-os/kernel/fs/mount.c
@@
-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;
}