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.
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) {