comparison 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
comparison
equal deleted inserted replaced
63738:aa5963346291 63739:f529a14158f8
2787 /* We have already prompted if it was an integer, 2787 /* We have already prompted if it was an integer,
2788 so don't have copy-file prompt again. */ 2788 so don't have copy-file prompt again. */
2789 NILP (ok_if_already_exists) ? Qnil : Qt, 2789 NILP (ok_if_already_exists) ? Qnil : Qt,
2790 Qt, Qnil); 2790 Qt, Qnil);
2791 2791
2792 #ifndef DOS_NT
2792 /* Preserve owner and group, if possible (if we are root). */ 2793 /* Preserve owner and group, if possible (if we are root). */
2793 if (stat (SDATA (encoded_file), &data) >= 0) 2794 if (stat (SDATA (encoded_file), &data) >= 0)
2794 chown (SDATA (encoded_file), data.st_uid, data.st_gid); 2795 chown (SDATA (encoded_file), data.st_uid, data.st_gid);
2796 #endif
2795 2797
2796 Fdelete_file (file); 2798 Fdelete_file (file);
2797 } 2799 }
2798 else 2800 else
2799 #ifdef NO_ARG_ARRAY 2801 #ifdef NO_ARG_ARRAY