Changes from APPLIANCE_HEAD:
[ira/wip.git] / source3 / nsswitch / wb_client.c
index 3e32fa3ac9f2619f1d363a257b56ca9745dabd06..142c61d9c1ccaa051ffea2b6c34637cd1fb815c6 100644 (file)
@@ -266,7 +266,8 @@ int winbind_initgroups(char *user, gid_t gid)
 
        result = wb_getgroups(user, &groups);
 
-       DEBUG(10,("wb_getgroups: %s: result = %s\n", user, result == NSS_STATUS_SUCCESS ? "SUCCESS" : "FAIL"));
+       DEBUG(10,("wb_getgroups: %s: result = %s\n", user, result == -1 ?
+                 "FAIL" : "SUCCESS"));
 
        if (result != -1) {
                int ngroups = result, i;