]> sourceware.org Git - dm.git/commitdiff
set_selinux_context() return code fix
authorAlasdair Kergon <agk@redhat.com>
Sat, 3 Jul 2004 18:14:12 +0000 (18:14 +0000)
committerAlasdair Kergon <agk@redhat.com>
Sat, 3 Jul 2004 18:14:12 +0000 (18:14 +0000)
lib/libdm-common.c

index 2fad9048963afb4782c1393358603ff01639e943..af4e7734978718b090e2185570916546c14507c5 100644 (file)
@@ -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));
This page took 0.028891 seconds and 5 git commands to generate.