From a9b53ad3778a9d61fdf66681e33d2dc75f7bd8f3 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Fri, 25 Mar 2011 18:37:15 +0100 Subject: [PATCH] src/fileio.c: Move computation of encoded_absname inside `if'. --- src/fileio.c | 3 +-- 1 file changed, 1 insertion(+), 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) { -- 2.11.4.GIT