diff options
author | Andreas Schwab <schwab@redhat.com> | 2011-11-03 14:26:38 +0100 |
---|---|---|
committer | Andreas Schwab <schwab@redhat.com> | 2011-11-03 14:41:10 +0100 |
commit | 3d7ba52b68e4dc5c4d3eb19de436c66ed9bb2f0d (patch) | |
tree | d2a79493fb9dfd3d1dc9b78c706b00af70cbb185 /nss/makedb.c | |
parent | bc8db248baddc8309372158378337fdf7877ad68 (diff) | |
download | glibc-3d7ba52b68e4dc5c4d3eb19de436c66ed9bb2f0d.zip glibc-3d7ba52b68e4dc5c4d3eb19de436c66ed9bb2f0d.tar.gz glibc-3d7ba52b68e4dc5c4d3eb19de436c66ed9bb2f0d.tar.bz2 |
Don't fail in makedb if SELinux is disabled
Diffstat (limited to 'nss/makedb.c')
-rw-r--r-- | nss/makedb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |