Mercurial > emacs
changeset 63739:f529a14158f8
(Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Fri, 24 Jun 2005 09:03:21 +0000 |
parents | aa5963346291 |
children | ad9a8f94b184 |
files | src/fileio.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/fileio.c Fri Jun 24 08:57:12 2005 +0000 +++ b/src/fileio.c Fri Jun 24 09:03:21 2005 +0000 @@ -2789,9 +2789,11 @@ 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); }