Content-Length: 258687 | pFad | http://github.com/postgrespro/postgres_cluster/commit/6d257e732b358ee601a114fe3d1640a46317e554

9C Fix zic for Windows. · postgrespro/postgres_cluster@6d257e7 · GitHub
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/6d257e732b358ee601a114fe3d1640a46317e554

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy