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
/
path_walk.c
diff --git
a/lunaix-os/kernel/fs/path_walk.c
b/lunaix-os/kernel/fs/path_walk.c
index 07edfc70675065cf5959fb0d36123ddf3f700446..d376c798b778660328f07951257c6acfd9c537cd 100644
(file)
--- a/
lunaix-os/kernel/fs/path_walk.c
+++ b/
lunaix-os/kernel/fs/path_walk.c
@@
-119,7
+119,7
@@
__vfs_walk(struct v_dnode* start,
current_level = dnode;
current_inode = current_level->inode;
- if ((current_inode->itype &
VFS_IFSYMLI
NK) &&
+ if ((current_inode->itype &
F_MSL
NK) &&
!(walk_options & VFS_WALK_NOFOLLOW)) {
const char* link;