summaryrefslogtreecommitdiffstats
path: root/src/account/LMI_AccountCapabilitiesProvider.c
diff options
context:
space:
mode:
authorRoman Rakus <rrakus@redhat.com>2013-09-02 15:37:01 +0200
committerRoman Rakus <rrakus@redhat.com>2013-09-04 13:08:40 +0200
commitab33d9f9687df28d4ac164cb36e9cdabcf304b66 (patch)
tree57134eca5a995c7cbae817161c2a486aa6fc9325 /src/account/LMI_AccountCapabilitiesProvider.c
parentdcf85be223242d9f8f177774520a0cfc9fc58a29 (diff)
downloadopenlmi-providers-ab33d9f9687df28d4ac164cb36e9cdabcf304b66.tar.gz
openlmi-providers-ab33d9f9687df28d4ac164cb36e9cdabcf304b66.tar.xz
openlmi-providers-ab33d9f9687df28d4ac164cb36e9cdabcf304b66.zip
Account: Use return CIM_RC_ERR_FAILED instead of exit(1)
Signed-off-by: Roman Rakus <rrakus@redhat.com>
Diffstat (limited to 'src/account/LMI_AccountCapabilitiesProvider.c')
-rw-r--r--src/account/LMI_AccountCapabilitiesProvider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/account/LMI_AccountCapabilitiesProvider.c b/src/account/LMI_AccountCapabilitiesProvider.c
index 1636ab7..c950b3a 100644
--- a/src/account/LMI_AccountCapabilitiesProvider.c
+++ b/src/account/LMI_AccountCapabilitiesProvider.c
@@ -83,8 +83,8 @@ static CMPIStatus LMI_AccountCapabilitiesEnumInstances(
luc = lu_start(NULL, lu_user, NULL, NULL, lu_prompt_console_quiet, NULL, &error);
if (!luc)
{
- fprintf(stderr, "Error initializing: %s\n", lu_strerror(error));
- exit(1);
+ KReturn2(_cb, ERR_FAILED,
+ "Unable to initialize libuser: %s\n", lu_strerror(error));
}
accounts = lu_users_enumerate_full(luc, "*", &error);