Subject: bug#3771: 23.0.95; Tramp file error

From: [email-masked] (Eythan Weg)
Date: Mon, 06 Jul 2009 19:26:06 -0400

Please write in English if possible, because the Emacs maintainers
usually do not have translators to read other languages for them.

Your bug report will be posted to the [email-masked] mailing list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Start emacs -Q. On being user weg I use tramp to access on 
localhost  the file 
-rw-r--r--  1 laura laura        6 2009-07-05 09:31 test3.txt
in /tmp.

edit and save.  *Messages* has these lines:

Saving file /scp:laura@localhost:/tmp/test3.txt...
Wrote /scp:laura@localhost:/tmp/test3.txt
File error: Error while changing file's mode /scp:laura@localhost:/tmp/test3.txt

The file is updated under my ownership.

-rw-r--r--  1 weg   weg         27 2009-07-05 09:32 test3.txt

The backup file renamed properly: 
-rw-r--r--  1 laura laura        6 2009-07-05 09:31 test3.txt~

When  tramp access a remote system in an analogous situation there 
is no problem.  I have a copy of the  tramp debug buffer saved if needed.

If Emacs crashed, and you have the Emacs process in the gdb debugger,
please include the output from the following gdb commands:
    `bt full' and `xbacktrace'.
If you would like to further debug the crash, please read the file
/usr/local/share/emacs/23.0.95/etc/DEBUG for instructions.

In GNU Emacs 23.0.95.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.16.1)
 of 2009-06-19 on gauss
Windowing system distributor `The X.Org Foundation', version 11.0.10601901
Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: nil
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  shell-dirtrack-mode: t
  tooltip-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-x C-f / / <backspace> l a u r a / <backspace> @ <tab> 
l o c a l h o s t : C-g M-: <help-echo> <down-mouse-2> 
<mouse-2> <help-echo> <return> C-x C-f M-p / l <backspace> 
l a u r a @ l o c a l h o s t : / t m p / t e s t 2 
. t x t <return> C-x C-f t e s t 3 . t x t <return> 
<down> T h i s SPC i s SPC a SPC t r u e SPC s t o 
r y <return> C-x C-s C-x b m e s a <return> <backspace> 
C-x C-f m e s s a <backspace> <backspace> <backspace> 
C-g C-g C-x b * M e TAB <return> M-x r e p o r s t 
<backspace> <backspace> <backspace> r t - r <backspace> 
e m TAB <return>

Recent messages:
Tramp: Sending command `ssh localhost -l laura  -q -e none && exit || exit'
Tramp: Waiting for prompts from remote shell
Tramp: Found remote shell prompt on `localhost'
Note: file is write protected
Saving file /scp:laura@localhost:/tmp/test3.txt...
Wrote /scp:laura@localhost:/tmp/test3.txt
File error: Error while changing file's mode /scp:laura@localhost:/tmp/test3.txt
call-interactively: Beginning of buffer
Quit [2 times]
read-number: Command attempted to use minibuffer while in minibuffer