Commit a9b53ad3 authored by Juanma Barranquero's avatar Juanma Barranquero

src/fileio.c: Move computation of encoded_absname inside `if'.

parent 0f4a96b5
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment