]> code.delx.au - gnu-emacs/commitdiff
(Frename_file): Undo last change: no need to ifdef away
authorEli Zaretskii <eliz@gnu.org>
Fri, 24 Jun 2005 10:41:19 +0000 (10:41 +0000)
committerEli Zaretskii <eliz@gnu.org>
Fri, 24 Jun 2005 10:41:19 +0000 (10:41 +0000)
chown on DOS_NT platforms.

src/ChangeLog
src/fileio.c

index 6820cdfe06a0a98950d13692f4fddb863ddc0aab..6bec8c3b0447006081fae6dfc3ffb6134de32b9c 100644 (file)
@@ -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.
index 2fb12959786cc0ab4ad9bb7de68c20517b95bbb5..6bdc030bc6ce1c17d94ce9c346587585eb67de9d 100644 (file)
@@ -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);
        }