summaryrefslogtreecommitdiffstats
path: root/server/tools/sss_groupadd.c
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/sss_groupadd.c')
-rw-r--r--server/tools/sss_groupadd.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/server/tools/sss_groupadd.c b/server/tools/sss_groupadd.c
index 431e34b67..5e1aeb9b2 100644
--- a/server/tools/sss_groupadd.c
+++ b/server/tools/sss_groupadd.c
@@ -208,7 +208,15 @@ int main(int argc, const char **argv)
if (group_ctx->error) {
ret = group_ctx->error;
- DEBUG(0, ("Operation failed (%d)[%s]\n", ret, strerror(ret)));
+ switch (ret) {
+ case EEXIST:
+ DEBUG(0, ("The group %s already exists\n", group_ctx->groupname));
+ break;
+
+ default:
+ DEBUG(0, ("Operation failed (%d)[%s]\n", ret, strerror(ret)));
+ break;
+ }
ret = EXIT_FAILURE;
goto fini;
}