]> andersk Git - nss_nonlocal.git/commitdiff
initgroups_dyn: Rename is_local to !is_nonlocal
authorAnders Kaseorg <andersk@mit.edu>
Sun, 22 Aug 2010 08:57:51 +0000 (04:57 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Wed, 30 Mar 2011 08:56:26 +0000 (04:56 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
nonlocal-group.c

index 09fa6f205d057fbc824839e7d1f0cf48a0ab87d1..b7679ebd575720d658b994c898aa9c22debd69fb 100644 (file)
@@ -325,7 +325,7 @@ _nss_nonlocal_initgroups_dyn(const char *user, gid_t group, long int *start,
     const __typeof__(&_nss_nonlocal_initgroups_dyn) self = NULL;
 
     struct group local_users_group, nonlocal_users_group;
-    int is_local = 0;
+    bool is_nonlocal = true;
     char *buffer;
     int in, out, i;
 
@@ -334,7 +334,7 @@ _nss_nonlocal_initgroups_dyn(const char *user, gid_t group, long int *start,
     if (status == NSS_STATUS_TRYAGAIN) {
        return status;
     } else if (status != NSS_STATUS_SUCCESS) {
-       is_local = 1;
+       is_nonlocal = false;
 
        status = get_local_group(MAGIC_LOCAL_GROUPNAME,
                                 &local_users_group, &buffer, errnop);
@@ -366,7 +366,7 @@ _nss_nonlocal_initgroups_dyn(const char *user, gid_t group, long int *start,
        }
     }
 
-    if (is_local)
+    if (!is_nonlocal)
        return NSS_STATUS_SUCCESS;
 
     in = out = *start;
This page took 0.452339 seconds and 5 git commands to generate.