]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - fs/autofs4/root.c
fs: change return values from -EACCES to -EPERM
[karo-tx-linux.git] / fs / autofs4 / root.c
index 91b11650722e517e2066219fac803aefdae78470..13c21b1d250c1d395f96d28728efc3c10a42e792 100644 (file)
@@ -583,7 +583,7 @@ static int autofs4_dir_unlink(struct inode *dir, struct dentry *dentry)
        
        /* This allows root to remove symlinks */
        if (!autofs4_oz_mode(sbi) && !capable(CAP_SYS_ADMIN))
-               return -EACCES;
+               return -EPERM;
 
        if (atomic_dec_and_test(&ino->count)) {
                p_ino = autofs4_dentry_ino(dentry->d_parent);