aboutsummaryrefslogtreecommitdiffstats
path: root/fs/namei.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/namei.c')
-rw-r--r--fs/namei.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namei.c b/fs/namei.c
index 3b67be7631dc..ae0e56fdb742 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2434,7 +2434,7 @@ asmlinkage long sys_unlink(const char __user *pathname)
2434 return do_unlinkat(AT_FDCWD, pathname); 2434 return do_unlinkat(AT_FDCWD, pathname);
2435} 2435}
2436 2436
2437int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname, int mode) 2437int vfs_symlink(struct inode *dir, struct dentry *dentry, const char *oldname)
2438{ 2438{
2439 int error = may_create(dir, dentry, NULL); 2439 int error = may_create(dir, dentry, NULL);
2440 2440
@@ -2483,7 +2483,7 @@ asmlinkage long sys_symlinkat(const char __user *oldname,
2483 error = mnt_want_write(nd.path.mnt); 2483 error = mnt_want_write(nd.path.mnt);
2484 if (error) 2484 if (error)
2485 goto out_dput; 2485 goto out_dput;
2486 error = vfs_symlink(nd.path.dentry->d_inode, dentry, from, S_IALLUGO); 2486 error = vfs_symlink(nd.path.dentry->d_inode, dentry, from);
2487 mnt_drop_write(nd.path.mnt); 2487 mnt_drop_write(nd.path.mnt);
2488out_dput: 2488out_dput:
2489 dput(dentry); 2489 dput(dentry);