1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00

set_selinux_context() return code fix

This commit is contained in:
Alasdair Kergon 2004-07-03 18:14:12 +00:00
parent 8bad033938
commit 2f7b799f89

View 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));