summaryrefslogtreecommitdiffstats
path: root/server/tools
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2009-04-22 17:00:12 +0200
committerStephen Gallagher <sgallagh@redhat.com>2009-04-23 09:06:27 -0400
commit1e08c6f901ad477d9be4b74942487bb3e8573ce3 (patch)
tree46b2cb583493bb48c911063f6e34b230aa55e5d5 /server/tools
parentabc04a747aeb90b15c5a838811cec2241afe8319 (diff)
downloadsssd-1e08c6f901ad477d9be4b74942487bb3e8573ce3.tar.gz
sssd-1e08c6f901ad477d9be4b74942487bb3e8573ce3.tar.xz
sssd-1e08c6f901ad477d9be4b74942487bb3e8573ce3.zip
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
Diffstat (limited to 'server/tools')
-rw-r--r--server/tools/sss_groupadd.c2
1 files changed, 1 insertions, 1 deletions
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 },