aboutsummaryrefslogtreecommitdiff
path: root/selinux
diff options
context:
space:
mode:
Diffstat (limited to 'selinux')
-rw-r--r--selinux/sestatus.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/selinux/sestatus.c b/selinux/sestatus.c
index 1351600c8..eca557e4c 100644
--- a/selinux/sestatus.c
+++ b/selinux/sestatus.c
@@ -54,10 +54,7 @@ static void read_config(char **pc, int npc, char **fc, int nfc)
pc[0] = fc[0] = NULL;
parser = config_open("/etc/sestatus.conf");
- if (!parser)
- return;
-
- while (config_read(parser, &buf, 1, 1, "# \t", PARSE_LAST_IS_GREEDY)) {
+ while (config_read(parser, &buf, 1, 1, "# \t", PARSE_NORMAL)) {
if (strcmp(buf, "[process]") == 0) {
section = 1;
} else if (strcmp(buf, "[files]") == 0) {