]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - fs/ecryptfs/crypto.c
eCryptfs: Filename encryption only supports password auth tokens
[net-next-2.6.git] / fs / ecryptfs / crypto.c
index f92370aa57041dcdf1578992722e8bcbab2cb952..bae20ad1a50478a3287fc4f72696069f8a12ab8d 100644 (file)
@@ -1703,7 +1703,7 @@ ecryptfs_encrypt_filename(struct ecryptfs_filename *filename,
        } else {
                printk(KERN_ERR "%s: No support for requested filename "
                       "encryption method in this release\n", __func__);
-               rc = -ENOTSUPP;
+               rc = -EOPNOTSUPP;
                goto out;
        }
 out:
@@ -2168,7 +2168,7 @@ int ecryptfs_encrypt_and_encode_filename(
                        (*encoded_name)[(*encoded_name_size)] = '\0';
                        (*encoded_name_size)++;
                } else {
-                       rc = -ENOTSUPP;
+                       rc = -EOPNOTSUPP;
                }
                if (rc) {
                        printk(KERN_ERR "%s: Error attempting to encode "