aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-07-14 10:31:05 +0200
committerAndreas Schneider <asn@samba.org>2017-07-14 15:20:04 +0200
commita337fc93269d50a265df1f568a99db490865702f (patch)
tree509f1c95bf2ae032ceaefe8b47514ffea4dd4919
parent3a43ef7330fc84e61c8545709e36440affd26950 (diff)
downloaduid_wrapper-a337fc93269d50a265df1f568a99db490865702f.tar.gz
uid_wrapper-a337fc93269d50a265df1f568a99db490865702f.tar.xz
uid_wrapper-a337fc93269d50a265df1f568a99db490865702f.zip
uwrap: Add log message before exit
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r--src/uid_wrapper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/uid_wrapper.c b/src/uid_wrapper.c
index 945c934..f9350f1 100644
--- a/src/uid_wrapper.c
+++ b/src/uid_wrapper.c
@@ -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);
}