diff options
| author | Juanma Barranquero | 2005-06-24 09:04:15 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2005-06-24 09:04:15 +0000 |
| commit | c4f6ca24744ab39f34e9ff19741b76a049769ef5 (patch) | |
| tree | 6e48ed03336526491e6c831376ca4ba216a11e71 /src/fileio.c | |
| parent | fc1c32c127bd246d626e7fd5f8837eff6c17e492 (diff) | |
| download | emacs-c4f6ca24744ab39f34e9ff19741b76a049769ef5.tar.gz emacs-c4f6ca24744ab39f34e9ff19741b76a049769ef5.zip | |
(Frename_file)[!DOS_NT]: Don't call chown on MSDOS/Windows.
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 2 insertions, 0 deletions
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. */) | |||
| 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 | } |