summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2005-06-24 10:41:19 +0000
committerEli Zaretskii <eliz@gnu.org>2005-06-24 10:41:19 +0000
commit90296dd36cbbdf2173007ed3153902e39503cffe (patch)
treee9a398c29248d478f9c5f4f08493d4b1ce827844 /src
parent2d5ab4bf851c71c0589b018a8bfc30cdc0a903e7 (diff)
downloademacs-90296dd36cbbdf2173007ed3153902e39503cffe.tar.gz
(Frename_file): Undo last change: no need to ifdef away
chown on DOS_NT platforms.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/fileio.c2
2 files changed, 9 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 6820cdfe06a..6bec8c3b044 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
+2005-06-24 Eli Zaretskii <eliz@gnu.org>
+
+ * fileio.c (Frename_file): Undo last change: no need to ifdef away
+ chown on DOS_NT platforms.
+
+ * w32.c (sys_chown): New function.
+
+ * s/ms-w32.h (chown): New; define to sys_chown.
+
2005-06-24 Juanma Barranquero <lekktu@gmail.com>
* xdisp.c (syms_of_xdisp) <nobreak-char-display>: Doc fix.
diff --git a/src/fileio.c b/src/fileio.c
index 2fb12959786..6bdc030bc6c 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2789,11 +2789,9 @@ This is what happens in interactive use with M-x. */)
NILP (ok_if_already_exists) ? Qnil : Qt,
Qt, Qnil);
-#ifndef DOS_NT
/* Preserve owner and group, if possible (if we are root). */
if (stat (SDATA (encoded_file), &data) >= 0)
chown (SDATA (encoded_file), data.st_uid, data.st_gid);
-#endif
Fdelete_file (file);
}