# HG changeset patch # User Juanma Barranquero # Date 1119603801 0 # Node ID f529a14158f82b6c7451c2d369e910dc152e262c # Parent aa5963346291144c2a70eb89028e19a9089d1272 (Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows. diff -r aa5963346291 -r f529a14158f8 src/fileio.c --- 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); }