Mercurial > hg > xemacs-beta
comparison src/nt.c @ 367:a4f53d9b3154 r21-1-13
Import from CVS: tag r21-1-13
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:01:07 +0200 |
parents | 8e84bee8ddd0 |
children | cc15677e0335 |
comparison
equal
deleted
inserted
replaced
366:83d76f480a59 | 367:a4f53d9b3154 |
---|---|
1167 sys_mktemp (temp); | 1167 sys_mktemp (temp); |
1168 if (rename (map_win32_filename (oldname, NULL), temp) < 0) | 1168 if (rename (map_win32_filename (oldname, NULL), temp) < 0) |
1169 return -1; | 1169 return -1; |
1170 } | 1170 } |
1171 | 1171 |
1172 /* Emulate Unix behaviour - newname is deleted if it already exists | 1172 /* Emulate Unix behavior - newname is deleted if it already exists |
1173 (at least if it is a file; don't do this for directories). | 1173 (at least if it is a file; don't do this for directories). |
1174 However, don't do this if we are just changing the case of the file | 1174 However, don't do this if we are just changing the case of the file |
1175 name - we will end up deleting the file we are trying to rename! */ | 1175 name - we will end up deleting the file we are trying to rename! */ |
1176 newname = map_win32_filename (newname, NULL); | 1176 newname = map_win32_filename (newname, NULL); |
1177 | 1177 |