current_level = dnode;
current_inode = current_level->inode;
- if ((current_inode->itype & VFS_IFSYMLINK) &&
+ if ((current_inode->itype & F_MSLNK) &&
!(walk_options & VFS_WALK_NOFOLLOW)) {
const char* link;
struct hstr* component,
int options)
{
+ if (!path) {
+ *dentry = NULL;
+ return 0;
+ }
+
// allocate a file name stack for path walking and recursion to resolve
// symlink
char* name_buffer = valloc(2048);