Bug report for Gnu Emacs
Version: 21.4.2
OS: Mandriva Linux 2006 Free
Filesystem: ext3

Scenario: overwriting (C-x C-w) an existing file, where the new file to be written is larger than the available disk space on the filesystem where the original file is kept.

Bug: after confirming that it is okay to overwrite the existing file, the error message displayed is "file already exists".
Expected behavior: error message should read "No space left on device or similar".

strace confirms that emacs is getting the right errno (ENOSPC) for the write to the file handle.

Thanks,
Alex