Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6d257e7

Browse files
committed
Fix zic for Windows.
The new coding of dolink() is dependent on link() returning an on-point errno when it fails; but the quick-hack implementation of link() that we'd put in for Windows didn't bother with setting errno. Fix that. Analysis and patch by Christian Ullrich.
1 parent 656ee84 commit 6d257e7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/timezone/zic.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3485,7 +3485,10 @@ int
34853485
link(const char *oldpath, const char *newpath)
34863486
{
34873487
if (!CopyFile(oldpath, newpath, false))
3488+
{
3489+
_dosmaperr(GetLastError());
34883490
return -1;
3491+
}
34893492
return 0;
34903493
}
34913494
#endif

0 commit comments

Comments
 (0)