From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Yang Zhang" Newsgroups: gmane.emacs.help Subject: Re: tramp 2.1.13-pre messed up symbolic link? Date: Wed, 25 Jun 2008 23:31:52 -0500 Message-ID: <8d61170c0806252131w1737acf0v3e046ca3677f5e15@mail.gmail.com> References: <87bq1v18ux.fsf@gmx.de> <8d61170c0806220203h75885df3nf6283e13c6d3732c@mail.gmail.com> <8d61170c0806232224r324a4b0gb1f22fa28ac78e36@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1214454750 17170 80.91.229.12 (26 Jun 2008 04:32:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2008 04:32:30 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Michael Albinus" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 26 06:33:14 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KBjAW-0005Aw-D9 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2008 06:33:12 +0200 Original-Received: from localhost ([127.0.0.1]:43411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBj9g-0002Tz-J6 for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2008 00:32:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KBj9M-0002Tm-Tu for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 00:32:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KBj9K-0002Ta-JC for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 00:31:59 -0400 Original-Received: from [199.232.76.173] (port=34029 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KBj9K-0002TX-G9 for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 00:31:58 -0400 Original-Received: from wf-out-1314.google.com ([209.85.200.171]:42776) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KBj9K-0008W3-6N for help-gnu-emacs@gnu.org; Thu, 26 Jun 2008 00:31:58 -0400 Original-Received: by wf-out-1314.google.com with SMTP id 28so3232834wfc.24 for ; Wed, 25 Jun 2008 21:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=JadCQcIEbw5dgTngd05GPB05CWmJS6jI6WsS/SDYgVA=; b=JOhxqx9NuPzFPsarjB0djie6D28Ujy2JQu9Zr+e6+oDC7RvLzr0wkPzAH9WJhfEM0l l4j0dr5y+NCX1DFfUIuWkh+RwuUpi3f3ZlZnyXOlL3rQWN6zeH17zbXgZUk3g29GZYnz RPn2gk0mFp35POw4xSIdvyg05/rrptiUcqIhA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=tp7G0e798PuU9/K9V9n3sbENNIKl9IlBL/CSeQexg3Yuo1m9ynONTvplLIlNMdPJtI AVUcYo1DCMH3sr4WmblMM+8gR6onbz/Nqm1SGhM9UJR4c11C3OAljgD5YfAKBbjnBNwr 6sFoiPkB5dcu/MQ9L8TrSP4sOytca7kZ5TrkA= Original-Received: by 10.142.162.9 with SMTP id k9mr7319168wfe.211.1214454712416; Wed, 25 Jun 2008 21:31:52 -0700 (PDT) Original-Received: by 10.142.200.19 with HTTP; Wed, 25 Jun 2008 21:31:52 -0700 (PDT) In-Reply-To: Content-Disposition: inline X-Google-Sender-Auth: ebd54a37e53179bb X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:55089 Archived-At: Hi Michael, The latest patch worked fine. Thanks for your prompt "fix." :) --Yang On Wed, Jun 25, 2008 at 6:35 AM, Michael Albinus wrote: >> Hi Michael, > > Hi Yang, > >> There is one small issue (that I've noticed for a long time). After >> saving, the target file's permission is always set to be "-rwxrwxrwx" >> regardless of the original one. For example, the target file is >> "test.cc (-rw-------)" the symbolic link is "test_link.cc (always >> lrwxrwxrwx)" After opening "test_link.cc" through tramp and saving >> something, "test.cc" now has a permission of "-rwxrwxrwx". It there a >> way to retain the target file's original permission after saving >> through the symbolic link file? > > Please try the appended patch. It should fix it. > >> Thanks >> --Yang > > Best regards, Michael. > >