[tz] [PATCH] zic: don't warn about link creation failure if not supported

Ian Abbott abbotti at mev.co.uk
Thu Feb 25 17:06:50 UTC 2016


Hi,

The attached patch suppresses some warnings output by zic when compiled 
without support for hard links and/or symbolic links.

When linking zone files in dolink(from, to), zic first tries to create
hard links, falling back to creating symbolic links, falling back to
creating copies.

If HAVE_LINK is 0, link(from, to) is defined as a macro that always
fails, so in that case, don't issue the warning "hard link failed,
symbolic link used" when symbolic links are successfully created in
place of hard links.

If HAVE_SYMLINK is 0, symlink(from, to) is defined as a macro that
always fails, so in that case, don't issue the warning "link failed,
copy used" when copies are successfully created in place of symbolic
links.

-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti at mev.co.uk> )=-
-=(                          Web: http://www.mev.co.uk/  )=-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-zic-don-t-warn-about-link-creation-failure-if-not-su.patch
Type: application/x-patch
Size: 1624 bytes
Desc: not available
URL: <http://mm.icann.org/pipermail/tz/attachments/20160225/0d72d092/0001-zic-don-t-warn-about-link-creation-failure-if-not-su.patch>


More information about the tz mailing list