Fix return values of set-file-acl and set-file-selinux-context when ENOTSUP.

Fixes: debbugs:13298
This commit is contained in:
Eli Zaretskii 2012-12-29 19:02:34 +02:00
parent 39a035e8aa
commit c1fea2c0d2

View 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