+2012-12-19 Michael Albinus <michael.albinus@gmx.de>
+
+ * net/tramp-sh.el (tramp-sh-handle-file-acl): Delete empty lines
+ and text properties from returned ACL string.
+ (tramp-sh-handle-set-file-acl): Do not use additional parentheses
+ for "setfacl" command.
+
2012-12-18 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-error-with-buffer): Give a hint to use
"getfacl -ac %s 2>/dev/null"
(tramp-shell-quote-argument localname))))
(with-current-buffer (tramp-get-connection-buffer v)
- (buffer-string))))))
+ (goto-char (point-max))
+ (delete-blank-lines)
+ (substring-no-properties (buffer-string)))))))
(defun tramp-sh-handle-set-file-acl (filename acl-string)
"Like `set-file-acl' for Tramp files."
(if (and (stringp acl-string)
(tramp-remote-acl-p v)
(tramp-send-command-and-check
- v
- (format "setfacl --set-file=- %s <<'EOF'\n%s\nEOF\n"
- (tramp-shell-quote-argument localname)
- acl-string)
- t))
+ v (format "setfacl --set-file=- %s <<'EOF'\n%s\nEOF\n"
+ (tramp-shell-quote-argument localname) acl-string)))
(tramp-set-file-property v localname "file-acl" acl-string)
(tramp-set-file-property v localname "file-acl-string" 'undef)))
;; We always return nil.