Subject: bug#13282: 24.2.91; tramp clobbers file owner/group

From: Michael Albinus <[email-masked]>
Date: Fri, 28 Dec 2012 18:44:27 +0100

Andreas Schwab <[email-masked]> writes:

>> It even happens with make-backup-files == t.  Just edit a file with a
>> non-default group, like /etc/shadow.
>>
>> Tramp: Inserting `/sudo:[email-masked]:/etc/shadow'...done
>>
>> Tramp: Checking `vc-registered' for /sudo:[email-masked]:/etc/shadow...done
>> Tramp: Inserting `/sudo:[email-masked]:/etc/shadow'...done
>> Saving file /sudo:[email-masked]:/etc/shadow...
>> Copying /sudo:[email-masked]:/etc/shadow to
>> /sudo:[email-masked]:/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.