emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tramp brocken selinux support: can't safe file.


From: Sascha Wilde
Subject: Tramp brocken selinux support: can't safe file.
Date: Thu, 22 Apr 2010 12:52:12 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi,

in the current trunk I can't safe remote files in tramp.  It errors out
with a miss matching number of arguments for a copy-file operation.  The
following quick and dirty hot fix makes it work for me again, but I'm
110% positive that it is incomplete and most likely totally wrong:

diff -r c580edae3c4c lisp/net/tramp.el
--- a/lisp/net/tramp.el Thu Apr 22 08:25:46 2010 +0000
+++ b/lisp/net/tramp.el Thu Apr 22 12:39:14 2010 +0200
@@ -3437,7 +3437,7 @@
         (buffer-name))))))
 
 (defun tramp-handle-copy-file
-  (filename newname &optional ok-if-already-exists keep-date preserve-uid-gid)
+  (filename newname &optional ok-if-already-exists keep-date preserve-uid-gid 
preserve-selinux-context)
   "Like `copy-file' for Tramp files."
   ;; Check if both files are local -- invoke normal copy-file.
   ;; Otherwise, use Tramp from local system.
@@ -5338,6 +5338,7 @@
                  'unhandled-file-name-directory 'vc-registered
                  ;; Emacs 22+ only.
                  'set-file-times
+                 'set-file-selinux-context
                  ;; XEmacs only.
                  'abbreviate-file-name 'create-file-buffer
                  'dired-file-modtime 'dired-make-compressed-filename
I use (setq backup-by-copying t) -- not sure if its related.

cheers
sascha
-- 
Parents strongly cautioned  --  this  posting  is  intended for mature
audiences  over  18.  It  may  contain some material that many parents
would not find suitable for children and may include intense violence,
sexual situations, coarse language and suggestive dialogue.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]