diff options
| author | Juanma Barranquero | 2011-03-25 18:37:15 +0100 |
|---|---|---|
| committer | Juanma Barranquero | 2011-03-25 18:37:15 +0100 |
| commit | a9b53ad3778a9d61fdf66681e33d2dc75f7bd8f3 (patch) | |
| tree | 318dba836fb22f58be0491e6faca59e362f56013 /src | |
| parent | 0f4a96b5d7de244a7be6fc98f6a66d3d1e6a7569 (diff) | |
| download | emacs-a9b53ad3778a9d61fdf66681e33d2dc75f7bd8f3.tar.gz emacs-a9b53ad3778a9d61fdf66681e33d2dc75f7bd8f3.zip | |
src/fileio.c: Move computation of encoded_absname inside `if'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 3 |
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. */) | |||
| 2806 | return call3 (handler, Qset_file_selinux_context, absname, context); | 2806 | return call3 (handler, Qset_file_selinux_context, absname, context); |
| 2807 | 2807 | ||
| 2808 | #if HAVE_LIBSELINUX | 2808 | #if HAVE_LIBSELINUX |
| 2809 | encoded_absname = ENCODE_FILE (absname); | ||
| 2810 | |||
| 2811 | if (is_selinux_enabled ()) | 2809 | if (is_selinux_enabled ()) |
| 2812 | { | 2810 | { |
| 2813 | /* Get current file context. */ | 2811 | /* Get current file context. */ |
| 2812 | encoded_absname = ENCODE_FILE (absname); | ||
| 2814 | conlength = lgetfilecon (SSDATA (encoded_absname), &con); | 2813 | conlength = lgetfilecon (SSDATA (encoded_absname), &con); |
| 2815 | if (conlength > 0) | 2814 | if (conlength > 0) |
| 2816 | { | 2815 | { |