summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2009-11-09 13:37:29 +0100
committerStephen Gallagher <sgallagh@redhat.com>2009-11-09 13:50:28 -0500
commit60d87f2d861f583c6b9d55b580deededcae7dba7 (patch)
tree6e1dc76faab73872041517e847e1245ff4987963 /server
parent082131cecd9e87eaf19eb7fc08dda0eadbf93bf6 (diff)
downloadsssd-60d87f2d861f583c6b9d55b580deededcae7dba7.tar.gz
sssd-60d87f2d861f583c6b9d55b580deededcae7dba7.tar.xz
sssd-60d87f2d861f583c6b9d55b580deededcae7dba7.zip
Fix regression in error message when deleting groups
Diffstat (limited to 'server')
-rw-r--r--server/tools/sss_groupdel.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/server/tools/sss_groupdel.c b/server/tools/sss_groupdel.c
index d2b4edfe3..84ea0be41 100644
--- a/server/tools/sss_groupdel.c
+++ b/server/tools/sss_groupdel.c
@@ -94,10 +94,8 @@ int main(int argc, const char **argv)
tctx->octx->name, tctx->local,
&tctx->octx);
if (ret != EOK) {
- ERROR("Cannot find group in local domain, "
- "modifying groups is allowed only in local domain\n");
- ret = EXIT_FAILURE;
- goto fini;
+ /* Error message will be printed in the switch */
+ goto done;
}
if ((tctx->octx->gid < tctx->local->id_min) ||
@@ -125,9 +123,9 @@ int main(int argc, const char **argv)
end_transaction(tctx);
+ ret = tctx->error;
done:
- if (tctx->error) {
- ret = tctx->error;
+ if (ret) {
DEBUG(1, ("sysdb operation failed (%d)[%s]\n", ret, strerror(ret)));
switch (ret) {
case ENOENT: