projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
440f017
)
; * src/fileio.c (Ffile_selinux_context): Avoid unused variable.
author
Po Lu
<luangruo@yahoo.com>
Tue, 8 Aug 2023 08:21:45 +0000
(16:21 +0800)
committer
Po Lu
<luangruo@yahoo.com>
Tue, 8 Aug 2023 08:21:45 +0000
(16:21 +0800)
src/fileio.c
patch
|
blob
|
history
diff --git
a/src/fileio.c
b/src/fileio.c
index 5d01e10f0ef7c37a4ac56986fbbda369615af3ea..b2186a027d47cb5225204be309fbce1ff16f9631 100644
(file)
--- a/
src/fileio.c
+++ b/
src/fileio.c
@@
-3372,7
+3372,9
@@
or if SELinux is disabled, or if Emacs lacks SELinux support. */)
{
Lisp_Object user = Qnil, role = Qnil, type = Qnil, range = Qnil;
Lisp_Object absname = expand_and_dir_to_file (filename);
+#ifdef HAVE_LIBSELINUX
const char *file;
+#endif /* HAVE_LIBSELINUX */
/* If the file name has special constructs in it,
call the corresponding file name handler. */
@@
-3381,9
+3383,9
@@
or if SELinux is disabled, or if Emacs lacks SELinux support. */)
if (!NILP (handler))
return call2 (handler, Qfile_selinux_context, absname);
+#ifdef HAVE_LIBSELINUX
file = SSDATA (ENCODE_FILE (absname));
-#if HAVE_LIBSELINUX
if (selinux_enabled_p (file))
{
char *con;