Skip to content

Commit 0c44726

Browse files
committed
🐞 fix(dfs_v2): fix symlink dir
1 parent d5a16af commit 0c44726

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

components/dfs/dfs_v2/src/dfs_file.c

+7
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,13 @@ static char *dfs_nolink_path(struct dfs_mnt **mnt, char *fullpath, int mode)
317317
{
318318
rt_kprintf("link error: %s\n", path);
319319
}
320+
321+
char *_fullpath = dfs_normalize_path(RT_NULL, path);
322+
if (_fullpath)
323+
{
324+
strncpy(path, _fullpath, DFS_PATH_MAX);
325+
rt_free(_fullpath);
326+
}
320327
}
321328
dfs_dentry_unref(dentry);
322329
}

0 commit comments

Comments
 (0)