diff options
| author | Michael Albinus | 2010-04-22 11:15:27 +0200 |
|---|---|---|
| committer | Michael Albinus | 2010-04-22 11:15:27 +0200 |
| commit | 25f14cdb5a3608adb3d71e15ff15cdafe5a52434 (patch) | |
| tree | 04569c5e54eeb5319e24b0dcece33b946ba77f27 | |
| parent | 731533fdb6cf0f0db6fd258b45baabe9e148f459 (diff) | |
| download | emacs-25f14cdb5a3608adb3d71e15ff15cdafe5a52434.tar.gz emacs-25f14cdb5a3608adb3d71e15ff15cdafe5a52434.zip | |
* net/tramp.el (tramp-handle-copy-file): Add new optional
parameter `preserve-selinux-context'.
(tramp-file-name-for-operation): Add `set-file-selinux-context'.
| -rwxr-xr-x[-rw-r--r--] | lisp/ChangeLog | 4 | ||||
| -rwxr-xr-x[-rw-r--r--] | lisp/net/tramp.el | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e701f59554b..d7c32848543 100644..100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-04-22 Michael Albinus <michael.albinus@gmx.de> | 1 | 2010-04-22 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 2 | ||
| 3 | * net/tramp.el (tramp-handle-copy-file): Add new optional | ||
| 4 | parameter `preserve-selinux-context'. | ||
| 5 | (tramp-file-name-for-operation): Add `set-file-selinux-context'. | ||
| 6 | |||
| 3 | * net/tramp.el (tramp-completion-handle-file-name-all-completions): | 7 | * net/tramp.el (tramp-completion-handle-file-name-all-completions): |
| 4 | Ensure, that non remote files are still checked. Oops. | 8 | Ensure, that non remote files are still checked. Oops. |
| 5 | 9 | ||
diff --git a/lisp/net/tramp.el b/lisp/net/tramp.el index 05f7b94edda..6959879e677 100644..100755 --- a/lisp/net/tramp.el +++ b/lisp/net/tramp.el | |||
| @@ -3437,7 +3437,8 @@ tramp-handle-file-name-all-completions: internal error accessing `%s': `%s'" | |||
| 3437 | (buffer-name)))))) | 3437 | (buffer-name)))))) |
| 3438 | 3438 | ||
| 3439 | (defun tramp-handle-copy-file | 3439 | (defun tramp-handle-copy-file |
| 3440 | (filename newname &optional ok-if-already-exists keep-date preserve-uid-gid) | 3440 | (filename newname &optional ok-if-already-exists keep-date |
| 3441 | preserve-uid-gid preserve-selinux-context) | ||
| 3441 | "Like `copy-file' for Tramp files." | 3442 | "Like `copy-file' for Tramp files." |
| 3442 | ;; Check if both files are local -- invoke normal copy-file. | 3443 | ;; Check if both files are local -- invoke normal copy-file. |
| 3443 | ;; Otherwise, use Tramp from local system. | 3444 | ;; Otherwise, use Tramp from local system. |
| @@ -5326,7 +5327,7 @@ ARGS are the arguments OPERATION has been called with." | |||
| 5326 | 'dired-compress-file 'dired-uncache | 5327 | 'dired-compress-file 'dired-uncache |
| 5327 | 'file-accessible-directory-p 'file-attributes | 5328 | 'file-accessible-directory-p 'file-attributes |
| 5328 | 'file-directory-p 'file-executable-p 'file-exists-p | 5329 | 'file-directory-p 'file-executable-p 'file-exists-p |
| 5329 | 'file-local-copy 'file-remote-p 'file-modes 'file-selinux-context | 5330 | 'file-local-copy 'file-remote-p 'file-modes |
| 5330 | 'file-name-as-directory 'file-name-directory | 5331 | 'file-name-as-directory 'file-name-directory |
| 5331 | 'file-name-nondirectory 'file-name-sans-versions | 5332 | 'file-name-nondirectory 'file-name-sans-versions |
| 5332 | 'file-ownership-preserved-p 'file-readable-p | 5333 | 'file-ownership-preserved-p 'file-readable-p |
| @@ -5338,6 +5339,8 @@ ARGS are the arguments OPERATION has been called with." | |||
| 5338 | 'unhandled-file-name-directory 'vc-registered | 5339 | 'unhandled-file-name-directory 'vc-registered |
| 5339 | ;; Emacs 22+ only. | 5340 | ;; Emacs 22+ only. |
| 5340 | 'set-file-times | 5341 | 'set-file-times |
| 5342 | ;; Emacs 24+ only. | ||
| 5343 | 'file-selinux-context 'set-file-selinux-context | ||
| 5341 | ;; XEmacs only. | 5344 | ;; XEmacs only. |
| 5342 | 'abbreviate-file-name 'create-file-buffer | 5345 | 'abbreviate-file-name 'create-file-buffer |
| 5343 | 'dired-file-modtime 'dired-make-compressed-filename | 5346 | 'dired-file-modtime 'dired-make-compressed-filename |
| @@ -8678,6 +8681,7 @@ Only works for Bourne-like shells." | |||
| 8678 | ;; on remote hosts. | 8681 | ;; on remote hosts. |
| 8679 | ;; * Use secrets.el for password handling. | 8682 | ;; * Use secrets.el for password handling. |
| 8680 | ;; * Load ~/.emacs_SHELLNAME on the remote host for `shell'. | 8683 | ;; * Load ~/.emacs_SHELLNAME on the remote host for `shell'. |
| 8684 | ;; * Implement selinux-context. | ||
| 8681 | 8685 | ||
| 8682 | ;; Functions for file-name-handler-alist: | 8686 | ;; Functions for file-name-handler-alist: |
| 8683 | ;; diff-latest-backup-file -- in diff.el | 8687 | ;; diff-latest-backup-file -- in diff.el |