]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
librgw: change validity check for rgw_lookup
authorMatt Benjamin <mbenjamin@redhat.com>
Sat, 7 Nov 2015 21:18:18 +0000 (16:18 -0500)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 17:05:46 +0000 (12:05 -0500)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/rgw/rgw_file.cc

index df983d190c798475f9bebd9344c4b88db4338dc3..0cab7a9a67ff0a259643dd4a11f4f0ae5b6011c2 100644 (file)
@@ -233,7 +233,7 @@ int rgw_lookup(struct rgw_fs *rgw_fs,
 
   RGWFileHandle* parent = get_rgwfh(parent_fh);
   if ((! parent) ||
-      (! parent->is_bucket())) {
+      (parent->is_object())) {
     /* bad parent */
     return EINVAL;
   }