mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
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.
This commit is contained in:
parent
656ee84890
commit
6d257e732b
@ -3485,7 +3485,10 @@ int
|
|||||||
link(const char *oldpath, const char *newpath)
|
link(const char *oldpath, const char *newpath)
|
||||||
{
|
{
|
||||||
if (!CopyFile(oldpath, newpath, false))
|
if (!CopyFile(oldpath, newpath, false))
|
||||||
|
{
|
||||||
|
_dosmaperr(GetLastError());
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user