update fs/vfs/fs_symlink.c.

Signed-off-by: 杨庞源 <1169998606@qq.com>
This commit is contained in:
杨庞源
2025-08-07 14:45:21 +00:00
committed by Gitee
parent e9a7f2cd16
commit 09469b2d09
+1 -6
View File
@@ -99,7 +99,7 @@ int do_symlink(const char *target, int newfd, const char *path)
struct Mount *mount = NULL;
int ret;
if (!path)
if (!target || !path)
{
ret = -EFAULT;
goto errout;
@@ -111,11 +111,6 @@ int do_symlink(const char *target, int newfd, const char *path)
goto errout;
}
if (target == NULL)
{
goto errout;
}
if (strlen(target) >= PATH_MAX)
{
ret = -ENAMETOOLONG;