Skip to content

Commit 44c56d3

Browse files
committed
Fix not-HAVE_SYMLINK code in zic.c.
I broke this in commit f309492. 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.
1 parent 59a0c01 commit 44c56d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/timezone/zic.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -943,9 +943,11 @@ dolink(char const * fromfield, char const * tofield, bool staysymlink)
943943
if (link_errno != ENOTSUP)
944944
warning(_("copy used because hard link failed: %s"),
945945
strerror(link_errno));
946+
#ifdef HAVE_SYMLINK
946947
else if (symlink_errno != ENOTSUP)
947948
warning(_("copy used because symbolic link failed: %s"),
948949
strerror(symlink_errno));
950+
#endif
949951
}
950952
}
951953
}

0 commit comments

Comments
 (0)