aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2012-12-29 19:02:34 +0200
committerEli Zaretskii2012-12-29 19:02:34 +0200
commitc1fea2c0d236a152efdff96c019e23ce1b4b1095 (patch)
tree5ee8e99ffb514c629ad948d95b776b6639366ede /src
parent39a035e8aa1ccee000b73da956a5573c5e1bf26e (diff)
downloademacs-c1fea2c0d236a152efdff96c019e23ce1b4b1095.tar.gz
emacs-c1fea2c0d236a152efdff96c019e23ce1b4b1095.zip
Fix return values of set-file-acl and set-file-selinux-context when ENOTSUP.
Fixes: debbugs:13298
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c4
1 files changed, 2 insertions, 2 deletions
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. */)
3065 3065
3066 context_free (parsed_con); 3066 context_free (parsed_con);
3067 freecon (con); 3067 freecon (con);
3068 return Qt; 3068 return fail ? Qnil : Qt;
3069 } 3069 }
3070 else 3070 else
3071 report_file_error ("Doing lgetfilecon", Fcons (absname, Qnil)); 3071 report_file_error ("Doing lgetfilecon", Fcons (absname, Qnil));
@@ -3171,7 +3171,7 @@ support. */)
3171 report_file_error ("Setting ACL", Fcons (absname, Qnil)); 3171 report_file_error ("Setting ACL", Fcons (absname, Qnil));
3172 3172
3173 acl_free (acl); 3173 acl_free (acl);
3174 return Qt; 3174 return fail ? Qnil : Qt;
3175 } 3175 }
3176#endif 3176#endif
3177 3177