diff options
| author | Michael Albinus | 2012-12-19 14:01:16 +0100 |
|---|---|---|
| committer | Michael Albinus | 2012-12-19 14:01:16 +0100 |
| commit | 3c532af61710e373a311bce5ed7fbd8cacd5dd7d (patch) | |
| tree | b9b789c2a3211c76ab9213cde31a74c6f063a64c /lisp | |
| parent | 474d441e121b783a81e226042518b1c68e90fc2a (diff) | |
| download | emacs-3c532af61710e373a311bce5ed7fbd8cacd5dd7d.tar.gz emacs-3c532af61710e373a311bce5ed7fbd8cacd5dd7d.zip | |
* 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.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/net/tramp-sh.el | 11 |
2 files changed, 12 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 39fa4b2ef49..8e16fe02d9c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2012-12-19 Michael Albinus <michael.albinus@gmx.de> | ||
| 2 | |||
| 3 | * net/tramp-sh.el (tramp-sh-handle-file-acl): Delete empty lines | ||
| 4 | and text properties from returned ACL string. | ||
| 5 | (tramp-sh-handle-set-file-acl): Do not use additional parentheses | ||
| 6 | for "setfacl" command. | ||
| 7 | |||
| 1 | 2012-12-18 Michael Albinus <michael.albinus@gmx.de> | 8 | 2012-12-18 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 9 | ||
| 3 | * net/tramp.el (tramp-error-with-buffer): Give a hint to use | 10 | * net/tramp.el (tramp-error-with-buffer): Give a hint to use |
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el index 788246bffd5..97270f09327 100644 --- a/lisp/net/tramp-sh.el +++ b/lisp/net/tramp-sh.el | |||
| @@ -1549,7 +1549,9 @@ and gid of the corresponding user is taken. Both parameters must be integers." | |||
| 1549 | "getfacl -ac %s 2>/dev/null" | 1549 | "getfacl -ac %s 2>/dev/null" |
| 1550 | (tramp-shell-quote-argument localname)))) | 1550 | (tramp-shell-quote-argument localname)))) |
| 1551 | (with-current-buffer (tramp-get-connection-buffer v) | 1551 | (with-current-buffer (tramp-get-connection-buffer v) |
| 1552 | (buffer-string)))))) | 1552 | (goto-char (point-max)) |
| 1553 | (delete-blank-lines) | ||
| 1554 | (substring-no-properties (buffer-string))))))) | ||
| 1553 | 1555 | ||
| 1554 | (defun tramp-sh-handle-set-file-acl (filename acl-string) | 1556 | (defun tramp-sh-handle-set-file-acl (filename acl-string) |
| 1555 | "Like `set-file-acl' for Tramp files." | 1557 | "Like `set-file-acl' for Tramp files." |
| @@ -1557,11 +1559,8 @@ and gid of the corresponding user is taken. Both parameters must be integers." | |||
| 1557 | (if (and (stringp acl-string) | 1559 | (if (and (stringp acl-string) |
| 1558 | (tramp-remote-acl-p v) | 1560 | (tramp-remote-acl-p v) |
| 1559 | (tramp-send-command-and-check | 1561 | (tramp-send-command-and-check |
| 1560 | v | 1562 | v (format "setfacl --set-file=- %s <<'EOF'\n%s\nEOF\n" |
| 1561 | (format "setfacl --set-file=- %s <<'EOF'\n%s\nEOF\n" | 1563 | (tramp-shell-quote-argument localname) acl-string))) |
| 1562 | (tramp-shell-quote-argument localname) | ||
| 1563 | acl-string) | ||
| 1564 | t)) | ||
| 1565 | (tramp-set-file-property v localname "file-acl" acl-string) | 1564 | (tramp-set-file-property v localname "file-acl" acl-string) |
| 1566 | (tramp-set-file-property v localname "file-acl-string" 'undef))) | 1565 | (tramp-set-file-property v localname "file-acl-string" 'undef))) |
| 1567 | ;; We always return nil. | 1566 | ;; We always return nil. |