GNU bug report logs - #13282
24.2.91; tramp clobbers file owner/group

Previous Next

Package: emacs;

Reported by: Andreas Schwab <schwab <at> linux-m68k.org>

Date: Wed, 26 Dec 2012 20:19:02 UTC

Severity: important

Found in version 24.2.91

Fixed in version 24.2.92

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13282 in the body.
You can then email your comments to 13282 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13282; Package emacs. (Wed, 26 Dec 2012 20:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andreas Schwab <schwab <at> linux-m68k.org>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Wed, 26 Dec 2012 20:19:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: bug-gnu-emacs <at> gnu.org
Subject: 24.2.91; tramp clobbers file owner/group
Date: Wed, 26 Dec 2012 21:17:04 +0100
When edititing a file via /sudo:: the owner/group of the file is reset
to root:root.  This is a regression from 24.2.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13282; Package emacs. (Thu, 27 Dec 2012 21:30:02 GMT) Full text and rfc822 format available.

Message #8 received at 13282 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 13282 <at> debbugs.gnu.org
Subject: Re: bug#13282: 24.2.91; tramp clobbers file owner/group
Date: Thu, 27 Dec 2012 22:28:52 +0100
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> When edititing a file via /sudo:: the owner/group of the file is reset
> to root:root.  This is a regression from 24.2.

I cannot reproduce it, neither with the emacs-24 branch, nor with the
trunk. Could you, please, check with "emacs -Q"? Do you have special
settings of `backup-by-copying' and friends?

If it still happens to you, please run your test with tramp-verbose set
to 6. And please describe your test case.

> Andreas.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13282; Package emacs. (Thu, 27 Dec 2012 22:25:02 GMT) Full text and rfc822 format available.

Message #11 received at 13282 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 13282 <at> debbugs.gnu.org
Subject: Re: bug#13282: 24.2.91; tramp clobbers file owner/group
Date: Thu, 27 Dec 2012 23:23:42 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Andreas Schwab <schwab <at> linux-m68k.org> writes:
>
>> When edititing a file via /sudo:: the owner/group of the file is reset
>> to root:root.  This is a regression from 24.2.
>
> I cannot reproduce it, neither with the emacs-24 branch, nor with the
> trunk. Could you, please, check with "emacs -Q"? Do you have special
> settings of `backup-by-copying' and friends?

make-backup-files is nil.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13282; Package emacs. (Fri, 28 Dec 2012 16:22:02 GMT) Full text and rfc822 format available.

Message #14 received at 13282 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 13282 <at> debbugs.gnu.org
Subject: Re: bug#13282: 24.2.91; tramp clobbers file owner/group
Date: Fri, 28 Dec 2012 17:20:23 +0100
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Michael Albinus <michael.albinus <at> gmx.de> writes:
>
>> Andreas Schwab <schwab <at> linux-m68k.org> writes:
>>
>>> When edititing a file via /sudo:: the owner/group of the file is reset
>>> to root:root.  This is a regression from 24.2.
>>
>> I cannot reproduce it, neither with the emacs-24 branch, nor with the
>> trunk. Could you, please, check with "emacs -Q"? Do you have special
>> settings of `backup-by-copying' and friends?
>
> make-backup-files is nil.

Even with this setting I cannot reproduce. I need the traces, and/or
a simple scenario how to reproduce.

> Andreas.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13282; Package emacs. (Fri, 28 Dec 2012 16:53:02 GMT) Full text and rfc822 format available.

Message #17 received at 13282 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 13282 <at> debbugs.gnu.org
Subject: Re: bug#13282: 24.2.91; tramp clobbers file owner/group
Date: Fri, 28 Dec 2012 17:51:05 +0100
Michael Albinus <michael.albinus <at> gmx.de> writes:

> Even with this setting I cannot reproduce. I need the traces, and/or
> a simple scenario how to reproduce.

It even happens with make-backup-files == t.  Just edit a file with a
non-default group, like /etc/shadow.

Tramp: Inserting `/sudo:root <at> igel.home:/etc/shadow'...done

Tramp: Checking `vc-registered' for /sudo:root <at> igel.home:/etc/shadow...done
Tramp: Inserting `/sudo:root <at> igel.home:/etc/shadow'...done
Saving file /sudo:root <at> igel.home:/etc/shadow...
Copying /sudo:root <at> igel.home:/etc/shadow to /sudo:root <at> igel.home:/etc/shadow.~1~...done
Copying /tmp/tramp.28187Oau to /sudo:root <at> igel.home:/etc/shadow...done
Wrote /sudo:root <at> igel.home:/etc/shadow

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13282; Package emacs. (Fri, 28 Dec 2012 16:56:01 GMT) Full text and rfc822 format available.

Message #20 received at 13282 <at> debbugs.gnu.org (full text, mbox):

From: Andreas Schwab <schwab <at> linux-m68k.org>
To: Michael Albinus <michael.albinus <at> gmx.de>
Cc: 13282 <at> debbugs.gnu.org
Subject: Re: bug#13282: 24.2.91; tramp clobbers file owner/group
Date: Fri, 28 Dec 2012 17:54:29 +0100
Andreas Schwab <schwab <at> linux-m68k.org> writes:

> Michael Albinus <michael.albinus <at> gmx.de> writes:
>
>> Even with this setting I cannot reproduce. I need the traces, and/or
>> a simple scenario how to reproduce.
>
> It even happens with make-backup-files == t.  Just edit a file with a
> non-default group, like /etc/shadow.
>
> Tramp: Inserting `/sudo:root <at> igel.home:/etc/shadow'...done
>
> Tramp: Checking `vc-registered' for /sudo:root <at> igel.home:/etc/shadow...done
> Tramp: Inserting `/sudo:root <at> igel.home:/etc/shadow'...done
> Saving file /sudo:root <at> igel.home:/etc/shadow...
> Copying /sudo:root <at> igel.home:/etc/shadow to /sudo:root <at> igel.home:/etc/shadow.~1~...done

Note that the backup copy retains the correct attributes.

Andreas.

-- 
Andreas Schwab, schwab <at> linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13282; Package emacs. (Fri, 28 Dec 2012 17:46:02 GMT) Full text and rfc822 format available.

Message #23 received at 13282 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 13282 <at> debbugs.gnu.org
Subject: Re: bug#13282: 24.2.91; tramp clobbers file owner/group
Date: Fri, 28 Dec 2012 18:44:27 +0100
Andreas Schwab <schwab <at> linux-m68k.org> writes:

>> It even happens with make-backup-files == t.  Just edit a file with a
>> non-default group, like /etc/shadow.
>>
>> Tramp: Inserting `/sudo:root <at> igel.home:/etc/shadow'...done
>>
>> Tramp: Checking `vc-registered' for /sudo:root <at> igel.home:/etc/shadow...done
>> Tramp: Inserting `/sudo:root <at> igel.home:/etc/shadow'...done
>> Saving file /sudo:root <at> igel.home:/etc/shadow...
>> Copying /sudo:root <at> igel.home:/etc/shadow to
>> /sudo:root <at> igel.home:/etc/shadow.~1~...done
>
> Note that the backup copy retains the correct attributes.

Thanks for this test case; I see it now as well. I've committed a fix to
the emacs-24 branch; could you, please, check?

> Andreas.

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13282; Package emacs. (Tue, 01 Jan 2013 01:50:01 GMT) Full text and rfc822 format available.

Message #26 received at 13282 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Andreas Schwab <schwab <at> linux-m68k.org>
Cc: 13282 <at> debbugs.gnu.org
Subject: Re: bug#13282: 24.2.91; tramp clobbers file owner/group
Date: Mon, 31 Dec 2012 20:47:59 -0500
Michael Albinus wrote:

> I've committed a fix to the emacs-24 branch; could you, please, check?

So, did it work for you?




bug marked as fixed in version 24.2.92, send any further explanations to 13282 <at> debbugs.gnu.org and Andreas Schwab <schwab <at> linux-m68k.org> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 03 Jan 2013 01:01:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 31 Jan 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 98 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.