aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2012-12-30 11:58:13 +0100
committerMichael Albinus2012-12-30 11:58:13 +0100
commit4f752957f174b5ab95ef6b9428669b1b1ecf0bab (patch)
tree2922f1b86aa4d19520e4e66e998f4d23fdbf7642
parent4d1d3f07a430aeca457a408c3fd5da65210962be (diff)
downloademacs-4f752957f174b5ab95ef6b9428669b1b1ecf0bab.tar.gz
emacs-4f752957f174b5ab95ef6b9428669b1b1ecf0bab.zip
* 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'.
-rw-r--r--lisp/ChangeLog8
-rw-r--r--lisp/net/tramp-sh.el9
-rw-r--r--lisp/net/tramp-smb.el2
3 files changed, 14 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 81b4978dba5..6dd5005a36e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,11 @@
12012-12-30 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/tramp-sh.el (tramp-sh-handle-set-file-selinux-context):
4 Return `t' on success.
5
6 * net/tramp-smb.el (tramp-smb-file-name-handler-alist): Add
7 handler for `set-file-selinux-context'.
8
12012-12-29 Michael Albinus <michael.albinus@gmx.de> 92012-12-29 Michael Albinus <michael.albinus@gmx.de>
2 10
3 * net/tramp-sh.el (tramp-sh-handle-file-acl): Suppress basic attributes. 11 * net/tramp-sh.el (tramp-sh-handle-file-acl): Suppress basic attributes.
diff --git a/lisp/net/tramp-sh.el b/lisp/net/tramp-sh.el
index ebc377c08c8..a76bac72dcf 100644
--- a/lisp/net/tramp-sh.el
+++ b/lisp/net/tramp-sh.el
@@ -1530,10 +1530,11 @@ and gid of the corresponding user is taken. Both parameters must be integers."
1530 (if (stringp (nth 3 context)) 1530 (if (stringp (nth 3 context))
1531 (format "--range=%s" (nth 3 context)) "") 1531 (format "--range=%s" (nth 3 context)) "")
1532 (tramp-shell-quote-argument localname)))) 1532 (tramp-shell-quote-argument localname))))
1533 (tramp-set-file-property v localname "file-selinux-context" context) 1533 (progn
1534 (tramp-set-file-property v localname "file-selinux-context" 'undef))) 1534 (tramp-set-file-property v localname "file-selinux-context" context)
1535 ;; We always return nil. 1535 t)
1536 nil) 1536 (tramp-set-file-property v localname "file-selinux-context" 'undef)
1537 nil)))
1537 1538
1538(defun tramp-remote-acl-p (vec) 1539(defun tramp-remote-acl-p (vec)
1539 "Check, whether ACL is enabled on the remote host." 1540 "Check, whether ACL is enabled on the remote host."
diff --git a/lisp/net/tramp-smb.el b/lisp/net/tramp-smb.el
index f97d4620b97..af1e36350f5 100644
--- a/lisp/net/tramp-smb.el
+++ b/lisp/net/tramp-smb.el
@@ -230,7 +230,7 @@ See `tramp-actions-before-shell' for more info.")
230 (rename-file . tramp-smb-handle-rename-file) 230 (rename-file . tramp-smb-handle-rename-file)
231 (set-file-acl . ignore) 231 (set-file-acl . ignore)
232 (set-file-modes . tramp-smb-handle-set-file-modes) 232 (set-file-modes . tramp-smb-handle-set-file-modes)
233 ;; `set-file-selinux-context' performed by default handler. 233 (set-file-selinux-context . ignore)
234 (set-file-times . ignore) 234 (set-file-times . ignore)
235 (set-visited-file-modtime . ignore) 235 (set-visited-file-modtime . ignore)
236 (shell-command . tramp-handle-shell-command) 236 (shell-command . tramp-handle-shell-command)