mirror of
https://github.com/postgres/postgres.git
synced 2025-04-25 21:42:33 +03:00
Fix not-HAVE_SYMLINK code in zic.c.
I broke this in commit f3094920a. Apparently it's dead code anyway, at least as far as our buildfarm is concerned (and the upstream IANA code doesn't worry at all about symlink() not being present). But as long as the rest of our code is willing to guard against not having symlink(), this should too. Noted while investigating a tangentially-related complaint from Sandeep Thakkar. Back-patch to keep branches in sync.
This commit is contained in:
parent
162477a63d
commit
19b2094d96
@ -931,9 +931,11 @@ dolink(char const * fromfield, char const * tofield, bool staysymlink)
|
||||
if (link_errno != ENOTSUP)
|
||||
warning(_("copy used because hard link failed: %s"),
|
||||
strerror(link_errno));
|
||||
#ifdef HAVE_SYMLINK
|
||||
else if (symlink_errno != ENOTSUP)
|
||||
warning(_("copy used because symbolic link failed: %s"),
|
||||
strerror(symlink_errno));
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user