[PATCH] zic: don't warn about link creation failure if not supported
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@mev.co.uk> )=- -=( Web: http://www.mev.co.uk/ )=-
participants (1)
-
Ian Abbott