diff options
author | Tomas Bzatek <tbzatek@redhat.com> | 2013-12-20 15:43:59 +0100 |
---|---|---|
committer | Tomas Bzatek <tbzatek@redhat.com> | 2013-12-20 15:43:59 +0100 |
commit | ddbe7ec6f7c62d0223ce211938e56d24c0205ef4 (patch) | |
tree | 84dce23ce2d73e985e0e873a295707d99c1bea16 /src/account | |
parent | 642082c1be5ecf2d9cd50bf3e6051da6330463ff (diff) | |
download | openlmi-providers-ddbe7ec6f7c62d0223ce211938e56d24c0205ef4.tar.gz openlmi-providers-ddbe7ec6f7c62d0223ce211938e56d24c0205ef4.tar.xz openlmi-providers-ddbe7ec6f7c62d0223ce211938e56d24c0205ef4.zip |
account: Code cleanup
Unused variable, unused assignment.
Diffstat (limited to 'src/account')
-rw-r--r-- | src/account/LMI_AccountManagementServiceProvider.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/account/LMI_AccountManagementServiceProvider.c b/src/account/LMI_AccountManagementServiceProvider.c index df58a53..f89ad07 100644 --- a/src/account/LMI_AccountManagementServiceProvider.c +++ b/src/account/LMI_AccountManagementServiceProvider.c @@ -373,7 +373,6 @@ KUint32 LMI_AccountManagementService_CreateAccount( struct lu_ent *lue = NULL, *lue_group = NULL; GValue val; - int create_group = 0; gid_t gid = LU_VALUE_INVALID_ID, uid = LU_VALUE_INVALID_ID; char *group_name = NULL, *instanceid = NULL; const char *home = NULL; @@ -465,15 +464,7 @@ KUint32 LMI_AccountManagementService_CreateAccount( /* add user to the group with same name as user name */ group_name = strdup(Name->chars); } - if (lu_group_lookup_name(luc, group_name, lue_group, &error)) - { - gid = aux_lu_get_long(lue_group, LU_GIDNUMBER); - } - else - { - create_group = 1; - } - if (create_group) + if (!lu_group_lookup_name(luc, group_name, lue_group, &error)) { lu_group_default(luc, group_name, 0, lue_group); if (!lu_group_add(luc, lue_group, &error)) |