From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Preserve permissions after backup? Date: Mon, 27 Jan 2003 12:41:08 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <84fzrfej2c.fsf@lucy.is.informatik.uni-duisburg.de> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1043689478 11800 80.91.224.249 (27 Jan 2003 17:44:38 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 27 Jan 2003 17:44:38 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18dDJF-000343-00 for ; Mon, 27 Jan 2003 18:44:37 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18dDNX-0006le-00 for ; Mon, 27 Jan 2003 18:49:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18dDKh-0004mq-07 for emacs-devel@quimby.gnus.org; Mon, 27 Jan 2003 12:46:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18dDIp-00048D-00 for emacs-devel@gnu.org; Mon, 27 Jan 2003 12:44:11 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18dDIj-00046Z-00 for emacs-devel@gnu.org; Mon, 27 Jan 2003 12:44:05 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18dDFs-0002zj-00 for emacs-devel@gnu.org; Mon, 27 Jan 2003 12:41:08 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 18dDFs-0007g8-00; Mon, 27 Jan 2003 12:41:08 -0500 Original-To: kai.grossjohann@uni-duisburg.de (Kai =?iso-8859-1?q?Gro=DFjohann?=) In-reply-to: <84fzrfej2c.fsf@lucy.is.informatik.uni-duisburg.de> (kai.grossjohann@uni-duisburg.de) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:11135 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:11135 A Tramp user is reporting that the permissions of a root-owned file change after he edits it with Tramp (the su method). I'm guessing that's because Tramp does backup by renaming and creates a new file with default permissions. Is there some machinery in Emacs which is designed to prevent things like this from happening? Yes. The functions to save the file are supposed to record the permissions of the old file and apply them to the new file. This must be malfunctioning with Tramp.