src/fileio.c: Move computation of encoded_absname inside `if'.
This commit is contained in:
parent
0f4a96b5d7
commit
a9b53ad377
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue