summaryrefslogtreecommitdiff
path: root/src/providers
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2013-09-21 05:57:12 +0200
committerJakub Hrozek <jhrozek@redhat.com>2013-09-22 11:41:11 +0200
commitd2f4746587809673122d348a8f806f1c14d3d60a (patch)
treea9aba78aff28bea93c1685571a3033c082afb247 /src/providers
parent4865dcbead699b861c24e87b16e20fc2f6698d3f (diff)
downloadsssd-d2f4746587809673122d348a8f806f1c14d3d60a.tar.gz
sssd-d2f4746587809673122d348a8f806f1c14d3d60a.tar.bz2
sssd-d2f4746587809673122d348a8f806f1c14d3d60a.zip
Check return values of setenv and unsetenv
Diffstat (limited to 'src/providers')
-rw-r--r--src/providers/data_provider_be.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/providers/data_provider_be.c b/src/providers/data_provider_be.c
index ccd51b45..6b58d88a 100644
--- a/src/providers/data_provider_be.c
+++ b/src/providers/data_provider_be.c
@@ -2891,7 +2891,11 @@ int main(int argc, const char *argv[])
return 2;
}
- setenv(SSS_DOM_ENV, be_domain, 1);
+ ret = setenv(SSS_DOM_ENV, be_domain, 1);
+ if (ret != 0) {
+ DEBUG(SSSDBG_MINOR_FAILURE, ("Setting "SSS_DOM_ENV" failed, journald "
+ "logging mightnot work as expected\n"));
+ }
ret = die_if_parent_died();
if (ret != EOK) {