From 3d7ba52b68e4dc5c4d3eb19de436c66ed9bb2f0d Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Thu, 3 Nov 2011 14:26:38 +0100 Subject: Don't fail in makedb if SELinux is disabled --- nss/makedb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nss/makedb.c') diff --git a/nss/makedb.c b/nss/makedb.c index 8cee92f..1b19966 100644 --- a/nss/makedb.c +++ b/nss/makedb.c @@ -842,7 +842,7 @@ set_file_creation_context (const char *outname, mode_t mode) /* Check if SELinux is enabled, and remember. */ if (enabled == 0) - enabled = is_selinux_enabled (); + enabled = is_selinux_enabled () ? 1 : -1; if (enabled < 0) return; -- cgit v1.1