aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2005-06-24 09:04:15 +0000
committerJuanma Barranquero2005-06-24 09:04:15 +0000
commitc4f6ca24744ab39f34e9ff19741b76a049769ef5 (patch)
tree6e48ed03336526491e6c831376ca4ba216a11e71 /src
parentfc1c32c127bd246d626e7fd5f8837eff6c17e492 (diff)
downloademacs-c4f6ca24744ab39f34e9ff19741b76a049769ef5.tar.gz
emacs-c4f6ca24744ab39f34e9ff19741b76a049769ef5.zip
(Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
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 }