]> git.eshelyaron.com Git - emacs.git/commit
copy-file now truncates output after writing
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 May 2015 05:55:25 +0000 (22:55 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 30 May 2015 06:02:38 +0000 (23:02 -0700)
commit2c3dde9fc8b3ac33cc2e5071e05772f3f46d62ad
tree1746f39feb7c26a4f23468a018294620b1b1cea7
parent56af96e54ee2402a07105fe60a5d6c34d697229d
copy-file now truncates output after writing

* src/fileio.c (Fcopy_file): Truncate output after writing rather
than before.  This is more likely to work than truncation before
writing, if the file system is out of space or the user is over
disk quota (Bug#20595).  Also, check for read errors.
src/fileio.c