r20774: I thought I committed this before Xmas holidays ...
[samba.git] / source3 / auth / auth_util.c
index c1f58cfecde102002ccc205ca1100b232adf68db..94551cb8a56d331866cbe10e42da19f883b46c05 100644 (file)
@@ -1048,7 +1048,7 @@ NTSTATUS create_local_token(auth_serversupplied_info *server_info)
                gid_t agid;
 
                if (wb) {
-                       if ( ! ids[i].mapped) {
+                       if (ids[i].status != ID_MAPPED) {
                                DEBUG(10, ("Could not convert SID %s to gid, "
                                           "ignoring it\n", sid_string_static(ids[i].sid)));
                                continue;