]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: fail RGWLibFS::authorize() on user-by-id lookup failure
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 6 Nov 2015 21:55:15 +0000 (16:55 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:05:42 +0000 (12:05 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.h

index d8d258104d64edab566c2f3fcc0bf1d19246e285..843d6f4d1f63df865469929429ca40dec23db8ce 100644 (file)
@@ -288,7 +288,7 @@ namespace rgw {
        if (user.suspended)
          return -ERR_USER_SUSPENDED;
       }
-      return 0;
+      return ret;
     }
 
     /* find or create an RGWFileHandle */