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. */) ...@@ -2806,11 +2806,10 @@ is disabled. */)
return call3 (handler, Qset_file_selinux_context, absname, context); return call3 (handler, Qset_file_selinux_context, absname, context);
#if HAVE_LIBSELINUX #if HAVE_LIBSELINUX
encoded_absname = ENCODE_FILE (absname);
if (is_selinux_enabled ()) if (is_selinux_enabled ())
{ {
/* Get current file context. */ /* Get current file context. */
encoded_absname = ENCODE_FILE (absname);
conlength = lgetfilecon (SSDATA (encoded_absname), &con); conlength = lgetfilecon (SSDATA (encoded_absname), &con);
if (conlength > 0) 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