aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fileio.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2ffb3c4959c..63de84edd63 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12005-06-24 Juanma Barranquero <lekktu@gmail.com>
2
3 * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on
4 MSDOS/Windows.
5
12005-06-23 Richard M. Stallman <rms@gnu.org> 62005-06-23 Richard M. Stallman <rms@gnu.org>
2 7
3 * xdisp.c (get_next_display_element): Finish reversing the tests of 8 * xdisp.c (get_next_display_element): Finish reversing the tests of
diff --git a/src/fileio.c b/src/fileio.c
index 6bdc030bc6c..2fb12959786 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2789,9 +2789,11 @@ This is what happens in interactive use with M-x. */)
2789 NILP (ok_if_already_exists) ? Qnil : Qt, 2789 NILP (ok_if_already_exists) ? Qnil : Qt,
2790 Qt, Qnil); 2790 Qt, Qnil);
2791 2791
2792#ifndef DOS_NT
2792 /* Preserve owner and group, if possible (if we are root). */ 2793 /* Preserve owner and group, if possible (if we are root). */
2793 if (stat (SDATA (encoded_file), &data) >= 0) 2794 if (stat (SDATA (encoded_file), &data) >= 0)
2794 chown (SDATA (encoded_file), data.st_uid, data.st_gid); 2795 chown (SDATA (encoded_file), data.st_uid, data.st_gid);
2796#endif
2795 2797
2796 Fdelete_file (file); 2798 Fdelete_file (file);
2797 } 2799 }