]> git.eshelyaron.com Git - emacs.git/commitdiff
(Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 24 Jun 2005 09:04:15 +0000 (09:04 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 24 Jun 2005 09:04:15 +0000 (09:04 +0000)
src/ChangeLog
src/fileio.c

index 2ffb3c4959c7e9418c19c53ed3ebc7f583055911..63de84edd636114f1d1b385ce9564b29636881d7 100644 (file)
@@ -1,3 +1,8 @@
+2005-06-24  Juanma Barranquero  <lekktu@gmail.com>
+
+       * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on
+       MSDOS/Windows.
+
 2005-06-23  Richard M. Stallman  <rms@gnu.org>
 
        * xdisp.c (get_next_display_element): Finish reversing the tests of
index 6bdc030bc6ce1c17d94ce9c346587585eb67de9d..2fb12959786cc0ab4ad9bb7de68c20517b95bbb5 100644 (file)
@@ -2789,9 +2789,11 @@ 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);
        }