]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw_admin: can reset auid
authorYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 8 Jun 2011 21:13:37 +0000 (14:13 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Wed, 8 Jun 2011 21:13:37 +0000 (14:13 -0700)
src/rgw/rgw_admin.cc

index 447d9af0daeb662205207f1a141f8d0d3b088ed4..e0ad230620782593048d31a15e87a9be00dc0185 100644 (file)
@@ -343,7 +343,7 @@ int main(int argc, char **argv)
   const char *subuser = 0;
   const char *access = 0;
   uint32_t perm_mask = 0;
-  uint64_t auid = 0;
+  uint64_t auid = -1;
   RGWUserInfo info;
   RGWAccess *store;
   const char *prev_cmd = NULL;
@@ -573,7 +573,7 @@ int main(int argc, char **argv)
       info.display_name = display_name;
     if (user_email)
       info.user_email = user_email;
-    if (auid)
+    if (auid >= 0)
       info.auid = auid;
     if (openstack_user)
       info.openstack_name = openstack_user;