Commit 00cbd440 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] Re: "rename" breakage?

The fix for rename broke "link()". Fixed.
parent c2ba4e3c
...@@ -832,7 +832,7 @@ int lento_unlink(const char *pathname, struct lento_vfs_context *info) ...@@ -832,7 +832,7 @@ int lento_unlink(const char *pathname, struct lento_vfs_context *info)
if(IS_ERR(name)) if(IS_ERR(name))
return PTR_ERR(name); return PTR_ERR(name);
error = path_lookup(name, LOOKUP_PARENT, &nd)) error = path_lookup(name, LOOKUP_PARENT, &nd);
if (error) if (error)
goto exit; goto exit;
error = -EISDIR; error = -EISDIR;
......
...@@ -1629,7 +1629,7 @@ asmlinkage long sys_link(const char * oldname, const char * newname) ...@@ -1629,7 +1629,7 @@ asmlinkage long sys_link(const char * oldname, const char * newname)
error = __user_walk(oldname, 0, &old_nd); error = __user_walk(oldname, 0, &old_nd);
if (error) if (error)
goto exit; goto exit;
error = path_lookup(to, 0, &nd); error = path_lookup(to, LOOKUP_PARENT, &nd);
if (error) if (error)
goto out; goto out;
error = -EXDEV; error = -EXDEV;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment