postgres.git / summary / log / commit / refs
commit 44c56d3b1c30f6cf2febe43271f324bb90c931f2
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Wed Oct 26 17:40:41 2016 +0000
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.
src/timezone/zic.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/timezone/zic.c b/src/timezone/zic.c
index 612133772eb..3452b97a985 100644
--- a/src/timezone/zic.c
+++ b/src/timezone/zic.c
@@ -943,9 +943,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
}
}
}
[parent: 59a0c01e3d88]