Mercurial > emacs
diff src/fileio.c @ 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 | c3da886cec72 |
children | 9e20e451f70f |
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); }