Fix bug #13298 with failed backups by falling back on set-file-modes.
authorEli Zaretskii <eliz@gnu.org>
Sat, 29 Dec 2012 14:32:36 +0000 (16:32 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 29 Dec 2012 14:32:36 +0000 (16:32 +0200)
commit5498012b8882bf6e5d716382cc85ccd6dc2f068e
tree02b271eafea66df4760e9e8ec226ca4266316b51
parent10c6d9b01bf7c4adbe35ab38f19ed9659646f406
Fix bug #13298 with failed backups by falling back on set-file-modes.

 src/fileio.c (Fset_file_selinux_context, Fset_file_acl): Return t if
 file's SELinux context or ACLs successfully set, nil otherwise.

 lisp/files.el (backup-buffer-copy, basic-save-buffer-2): If
 set-file-extended-attributes fails, fall back on set-file-modes
 instead of signaling an error.

 doc/lispref/files.texi (Changing Files): Document the return values of
 set-file-selinux-context and set-file-acl.
doc/lispref/ChangeLog
doc/lispref/files.texi
lisp/ChangeLog
lisp/files.el
src/ChangeLog
src/fileio.c