mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Use MSVCRT _unlink function (unlink was not setting errno)
This commit is contained in:
parent
c3579c8b76
commit
d7d145d940
1 changed files with 1 additions and 1 deletions
|
|
@ -1104,7 +1104,7 @@ static int rename_file(const char *from_filename, const char *to_filename)
|
|||
|
||||
/* Windows rename doesn't remove the destination if it exists. */
|
||||
errno = 0;
|
||||
rc = unlink(to_filename);
|
||||
rc = _unlink(to_filename);
|
||||
if (rc == -1 && errno != ENOENT)
|
||||
return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue