From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sascha Wilde Newsgroups: gmane.emacs.devel Subject: Tramp brocken selinux support: can't safe file. Date: Thu, 22 Apr 2010 12:52:12 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: dough.gmane.org 1271933695 28740 80.91.229.12 (22 Apr 2010 10:54:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 22 Apr 2010 10:54:55 +0000 (UTC) Cc: Michael Albinus To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 22 12:54:54 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O4u3Z-0000H6-NB for ged-emacs-devel@m.gmane.org; Thu, 22 Apr 2010 12:54:54 +0200 Original-Received: from localhost ([127.0.0.1]:42956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4u3Z-0005hd-AW for ged-emacs-devel@m.gmane.org; Thu, 22 Apr 2010 06:54:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O4u16-0004qD-HH for emacs-devel@gnu.org; Thu, 22 Apr 2010 06:52:20 -0400 Original-Received: from [140.186.70.92] (port=49523 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O4u14-0004p6-8x for emacs-devel@gnu.org; Thu, 22 Apr 2010 06:52:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O4u12-0003gh-30 for emacs-devel@gnu.org; Thu, 22 Apr 2010 06:52:18 -0400 Original-Received: from mail2.sha-bang.de ([78.47.120.114]:41709 helo=mail.sha-bang.de) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O4u11-0003gP-UK for emacs-devel@gnu.org; Thu, 22 Apr 2010 06:52:16 -0400 Original-Received: from kenny.sha-bang.local (xdslcs043.osnanet.de [89.166.146.43]) by mail.sha-bang.de (Postfix) with ESMTPSA id 56BCF565; Thu, 22 Apr 2010 12:52:13 +0200 (CEST) Original-Received: from wilde by kenny.sha-bang.local with local (Sha Bang MUA v.0711184.68) ID 1O4u0y-0007e4-LO; Thu, 22 Apr 2010 12:52:12 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:124032 Archived-At: --=-=-= 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: --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=tramp-selinux-quick-and-dirty-hotfix-20100422.patch 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. --=-=-=--