From 2f7b799f8959b769cf06af6bc9e3c93f49e57f0a Mon Sep 17 00:00:00 2001 From: Alasdair Kergon Date: Sat, 3 Jul 2004 18:14:12 +0000 Subject: [PATCH] set_selinux_context() return code fix --- libdm/libdm-common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/libdm-common.c b/libdm/libdm-common.c index 2fad90489..af4e77349 100644 --- a/libdm/libdm-common.c +++ b/libdm/libdm-common.c @@ -208,7 +208,7 @@ static int _set_selinux_context(const char *path) log_debug("Setting SELinux context for %s", path); if (is_selinux_enabled() <= 0) - return 0; + return 1; if (matchpathcon(path, 0, &scontext) < 0) { log_error("%s: matchpathcon failed: %s", path, strerror(errno));