summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fileio.c b/src/fileio.c
index bab9360d3bc..85431dfd5b1 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2806,11 +2806,10 @@ is disabled. */)
return call3 (handler, Qset_file_selinux_context, absname, context);
#if HAVE_LIBSELINUX
- encoded_absname = ENCODE_FILE (absname);
-
if (is_selinux_enabled ())
{
/* Get current file context. */
+ encoded_absname = ENCODE_FILE (absname);
conlength = lgetfilecon (SSDATA (encoded_absname), &con);
if (conlength > 0)
{