From: Eli Zaretskii Date: Sat, 29 Dec 2012 17:02:34 +0000 (+0200) Subject: Fix return values of set-file-acl and set-file-selinux-context when ENOTSUP. X-Git-Tag: emacs-24.3.90~173^2~7^2~449 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c1fea2c0d236a152efdff96c019e23ce1b4b1095;p=emacs.git Fix return values of set-file-acl and set-file-selinux-context when ENOTSUP. Fixes: debbugs:13298 --- diff --git a/src/fileio.c b/src/fileio.c index e824a7abcc5..241775abec1 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -3065,7 +3065,7 @@ or if Emacs was not compiled with SELinux support. */) context_free (parsed_con); freecon (con); - return Qt; + return fail ? Qnil : Qt; } else report_file_error ("Doing lgetfilecon", Fcons (absname, Qnil)); @@ -3171,7 +3171,7 @@ support. */) report_file_error ("Setting ACL", Fcons (absname, Qnil)); acl_free (acl); - return Qt; + return fail ? Qnil : Qt; } #endif