Skip to content

Commit 8981c4c

Browse files
committed
fix mount param issue
1 parent ba105bc commit 8981c4c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

components/lwp/lwp_syscall.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5783,6 +5783,11 @@ sysret_t sys_mount(char *source, char *target,
57835783
{
57845784
copy_source = NULL;
57855785
}
5786+
if (copy_source && rt_strncmp(copy_source, "/dev/", (sizeof("/dev/") - 1)))
5787+
{
5788+
copy_source += (sizeof("/dev/") - 1);
5789+
}
5790+
57865791
ret = dfs_mount(copy_source, copy_target, copy_filesystemtype, 0, tmp);
57875792
rt_free(copy_source);
57885793

0 commit comments

Comments
 (0)