fix #8305, symlink bug.
This commit is contained in:
parent
4bd5c31dac
commit
073761fdbe
|
@ -250,6 +250,13 @@ char *dfs_nolink_path(struct dfs_mnt **mnt, char *fullpath, int mode)
|
|||
|
||||
rt_memcpy(path + index, fp, i);
|
||||
path[index + i] = '\0';
|
||||
|
||||
/* the last should by mode process. */
|
||||
if ((fp[i] == '\0') && (!mode))
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
fp += i;
|
||||
|
||||
dentry = dfs_dentry_lookup(*mnt, path, 0);
|
||||
|
@ -307,8 +314,6 @@ _ERR_RET:
|
|||
path = RT_NULL;
|
||||
}
|
||||
|
||||
//rt_kprintf("%s: %s => %s\n", __FUNCTION__, fullpath, path);
|
||||
|
||||
return path;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue