Commit 4f752957 authored by Michael Albinus's avatar Michael Albinus

* net/tramp-sh.el (tramp-sh-handle-set-file-selinux-context):

Return `t' on success.

* net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add
handler for `set-file-selinux-context'.
parent 4d1d3f07
2012-12-30 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-sh-handle-set-file-selinux-context):
Return `t' on success.
* net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add
handler for `set-file-selinux-context'.
2012-12-29 Michael Albinus <michael.albinus@gmx.de>
* net/tramp-sh.el (tramp-sh-handle-file-acl): Suppress basic attributes.
......
......@@ -1530,10 +1530,11 @@ and gid of the corresponding user is taken. Both parameters must be integers."
(if (stringp (nth 3 context))
(format "--range=%s" (nth 3 context)) "")
(tramp-shell-quote-argument localname))))
(tramp-set-file-property v localname "file-selinux-context" context)
(tramp-set-file-property v localname "file-selinux-context" 'undef)))
;; We always return nil.
nil)
(progn
(tramp-set-file-property v localname "file-selinux-context" context)
t)
(tramp-set-file-property v localname "file-selinux-context" 'undef)
nil)))
(defun tramp-remote-acl-p (vec)
"Check, whether ACL is enabled on the remote host."
......
......@@ -230,7 +230,7 @@ See `tramp-actions-before-shell' for more info.")
(rename-file . tramp-smb-handle-rename-file)
(set-file-acl . ignore)
(set-file-modes . tramp-smb-handle-set-file-modes)
;; `set-file-selinux-context' performed by default handler.
(set-file-selinux-context . ignore)
(set-file-times . ignore)
(set-visited-file-modtime . ignore)
(shell-command . tramp-handle-shell-command)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment