[gnu.emacs.bug] bug in dired-rename-file in Gnu emacs version 18.55

ylo@NGS.FI (Tatu Ylonen) (12/09/89)

Problem: when I try to move a directory to another file system using
the r command in dired-mode, emacs copies the directory as a plain file and
gives a misleading error message.  The copied plain file is left on disk.

The error message is:
Removing old name: not owner, /usr/users/ylo/puukko/htyo

I own and have read/write/execute permissions to all associated files
and directories.

Fix: do not copy it as a plain file and give a better error message.
(I wouldn't mind if it copied/moved the entire directory tree, but I suppose
this is not necessary)

Priority: low

How to reproduce (on my system):
emacs -q     ; start emacs without reading .emacs
C-X C-F /usr/users/ylo/puukko     ; a directory, goes to dired
move to line containing subdirectory htyo using C-N
r /u/ylo/htyo/puukosta     ; try to rename it to puukosta in /u/ylo/htyo

This creates an ordinary file /u/ylo/htyo/puukosta, and gives the
error message above.

/u and /usr are different file systems, so the rename cannot really be
expected to succeed, but creating a plain file and giving a misleading
error message is not a very good way to handle it.

Output of df:
ylo@ngs.fi 1: df
Filesystem            kbytes    used   avail capacity  Mounted on
/dev/sd1a              14971    7028    7194    49%    /
/dev/sd1g             256345  210312   20398    91%    /usr
/dev/sd3g             320332  300674   16454    95%    /u
ylo@ngs.fi 2: 

Hardware and operating system:
Sun Sparcstation I, SunOS 4.0.3


   Tatu Ylonen    <ylo@ngs.fi>
                  <ylo@ngs.uucp>