]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: return -EINVAL on unknow authorization
authorJavier M. Mellid <jmunhoz@igalia.com>
Fri, 13 Nov 2015 15:11:46 +0000 (16:11 +0100)
committerJavier M. Mellid <jmunhoz@igalia.com>
Sat, 13 Feb 2016 12:41:28 +0000 (12:41 +0000)
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
src/rgw/rgw_rest_s3.cc

index 455a52446115c6de08f1fdf39b01067cdb5c9e5c..590f326aaf4ca07c6e4c1d147df118fb23c627f3 100644 (file)
@@ -2695,7 +2695,7 @@ int RGW_Auth_S3::authorize(RGWRados *store, struct req_state *s)
 
   }
 
-  return -EPERM;
+  return -EINVAL;
 }
 
 int RGW_Auth_S3::authorize_aws4_auth_complete(RGWRados *store, struct req_state *s)