Commit 6d257e73 authored by Tom Lane's avatar Tom Lane

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.
parent 656ee848
......@@ -3485,7 +3485,10 @@ int
link(const char *oldpath, const char *newpath)
{
if (!CopyFile(oldpath, newpath, false))
{
_dosmaperr(GetLastError());
return -1;
}
return 0;
}
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment