From: Juanma Barranquero Date: Fri, 24 Jun 2005 09:04:15 +0000 (+0000) Subject: (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows. X-Git-Tag: emacs-pretest-22.0.90~8667 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c4f6ca24744ab39f34e9ff19741b76a049769ef5;p=emacs.git (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows. --- diff --git a/src/ChangeLog b/src/ChangeLog index 2ffb3c4959c..63de84edd63 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-06-24 Juanma Barranquero + + * fileio.c (Frename_file)[!DOS_NT]: Don't call chown on + MSDOS/Windows. + 2005-06-23 Richard M. Stallman * 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. */) 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); }