all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Tramp brocken selinux support: can't safe file.
@ 2010-04-22 10:52 Sascha Wilde
  2010-04-22 11:32 ` Michael Albinus
  0 siblings, 1 reply; 5+ messages in thread
From: Sascha Wilde @ 2010-04-22 10:52 UTC (permalink / raw)
  To: emacs-devel; +Cc: Michael Albinus

[-- Attachment #1: Type: text/plain, Size: 288 bytes --]

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:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: tramp-selinux-quick-and-dirty-hotfix-20100422.patch --]
[-- Type: text/x-patch, Size: 834 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 354 bytes --]


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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2010-04-23  5:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-22 10:52 Tramp brocken selinux support: can't safe file Sascha Wilde
2010-04-22 11:32 ` Michael Albinus
2010-04-22 16:06   ` Glenn Morris
2010-04-22 19:00     ` Michael Albinus
2010-04-23  5:43       ` Glenn Morris

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.