Skip to content
Snippets Groups Projects
Commit 2711caca authored by Hongchao Zhang's avatar Hongchao Zhang
Browse files

b=10466

r=adilger@clusterfs.com
description: After calling 'symlink(path, newpath)', of which path(link target)
doesn't exist,  the second symlink call still success, which should return
-EEXIST.
parent 4b9cd1ee
No related branches found
No related tags found
No related merge requests found
......@@ -64,7 +64,7 @@ SYSIO_INTERFACE_NAME(symlink)(const char *oldpath, const char *newpath)
SYSIO_INTERFACE_ENTER;
INTENT_INIT(&intent, INT_CREAT, NULL, NULL);
err = _sysio_namei(_sysio_cwd, newpath, ND_NEGOK, &intent, &pno);
err = _sysio_namei(_sysio_cwd, newpath, ND_NOFOLLOW | ND_NEGOK, &intent, &pno);
if (err)
goto out;
if (pno->p_base->pb_ino) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment