diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/fileio.c b/src/fileio.c index 221ef67cd8e..3d0e30d1f4e 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -2109,21 +2109,11 @@ This is what happens in interactive use with M-x.") | |||
| 2109 | #ifndef BSD4_1 | 2109 | #ifndef BSD4_1 |
| 2110 | if (0 > rename (XSTRING (file)->data, XSTRING (newname)->data)) | 2110 | if (0 > rename (XSTRING (file)->data, XSTRING (newname)->data)) |
| 2111 | #else | 2111 | #else |
| 2112 | #ifdef WINDOWSNT | ||
| 2113 | if (!MoveFile (XSTRING (file)->data, XSTRING (newname)->data)) | ||
| 2114 | #else /* not WINDOWSNT */ | ||
| 2115 | if (0 > link (XSTRING (file)->data, XSTRING (newname)->data) | 2112 | if (0 > link (XSTRING (file)->data, XSTRING (newname)->data) |
| 2116 | || 0 > unlink (XSTRING (file)->data)) | 2113 | || 0 > unlink (XSTRING (file)->data)) |
| 2117 | #endif /* not WINDOWSNT */ | ||
| 2118 | #endif | 2114 | #endif |
| 2119 | { | 2115 | { |
| 2120 | #ifdef WINDOWSNT | ||
| 2121 | /* Why two? And why doesn't MS document what MoveFile will return? */ | ||
| 2122 | if (GetLastError () == ERROR_FILE_EXISTS | ||
| 2123 | || GetLastError () == ERROR_ALREADY_EXISTS) | ||
| 2124 | #else /* not WINDOWSNT */ | ||
| 2125 | if (errno == EXDEV) | 2116 | if (errno == EXDEV) |
| 2126 | #endif /* not WINDOWSNT */ | ||
| 2127 | { | 2117 | { |
| 2128 | Fcopy_file (file, newname, | 2118 | Fcopy_file (file, newname, |
| 2129 | /* We have already prompted if it was an integer, | 2119 | /* We have already prompted if it was an integer, |