uwrap: Add log message before exit
authorAndreas Schneider <asn@samba.org>
Fri, 14 Jul 2017 08:31:05 +0000 (10:31 +0200)
committerAndreas Schneider <asn@samba.org>
Fri, 14 Jul 2017 13:20:04 +0000 (15:20 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
src/uid_wrapper.c

index 945c9347044499650458204b73619f020283f187..f9350f14e87047335a2a3670194192861c349f1e 100644 (file)
@@ -1048,6 +1048,12 @@ static void uwrap_init_env(struct uwrap_thread *id)
                }
 
                if (i != ngroups) {
+                       UWRAP_LOG(UWRAP_LOG_ERROR,
+                                 "ERROR: The number of groups (%u) passed, "
+                                 "does not the number of groups (%u) we "
+                                 "parsed",
+                                 ngroups,
+                                 i);
                        exit(-1);
                }