]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix return values of set-file-acl and set-file-selinux-context when ENOTSUP.
authorEli Zaretskii <eliz@gnu.org>
Sat, 29 Dec 2012 17:02:34 +0000 (19:02 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Dec 2012 17:02:34 +0000 (19:02 +0200)
Fixes: debbugs:13298
src/fileio.c

index e824a7abcc5c95d23a82df114a5921049e73be35..241775abec1d29d67984a8304fe3d52cdc1d2aeb 100644 (file)
@@ -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