From 1e08c6f901ad477d9be4b74942487bb3e8573ce3 Mon Sep 17 00:00:00 2001 From: Sumit Bose Date: Wed, 22 Apr 2009 17:00:12 +0200 Subject: fixes for user and group creation in LOCAL domain - added range check for supplied UIDs and GIDs - initialize pc_gid to 0 to trigger gid generation --- server/tools/sss_groupadd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/tools') diff --git a/server/tools/sss_groupadd.c b/server/tools/sss_groupadd.c index d05597164..6dde7ae83 100644 --- a/server/tools/sss_groupadd.c +++ b/server/tools/sss_groupadd.c @@ -77,7 +77,7 @@ static void add_group(struct sysdb_req *req, void *pvt) int main(int argc, const char **argv) { - gid_t pc_gid; + gid_t pc_gid = 0; struct poptOption long_options[] = { POPT_AUTOHELP { "gid", 'g', POPT_ARG_INT, &pc_gid, 0, "The GID of the group", NULL }, -- cgit