]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/udf/file.c
fs: change return values from -EACCES to -EPERM
[karo-tx-linux.git] / fs / udf / file.c
index 4257a1f5302aa7f199cdc714b0eb01ac5c9dfa6f..29569dd0816814f23a34d713a3f3178c4e822929 100644 (file)
@@ -204,7 +204,7 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
                goto out;
        case UDF_RELOCATE_BLOCKS:
                if (!capable(CAP_SYS_ADMIN)) {
-                       result = -EACCES;
+                       result = -EPERM;
                        goto out;
                }
                if (get_user(old_block, (long __user *)arg)) {