} else {
rprintf(FERROR,
"internal: try_dests_non() called with invalid mode (%o)\n",
- file->mode);
+ (int)file->mode);
exit_cleanup(RERR_UNSUPPORTED);
}
if (link_dest
&& !IS_SPECIAL(file->mode) && !IS_DEVICE(file->mode)
#endif
) {
- if (do_link(fnamebuf, fname) < 0) {
+#ifdef SUPPORT_HARD_LINKS
+ if (do_link(fnamebuf, fname) < 0)
+#endif
+ {
rsyserr(FERROR, errno,
"failed to hard-link %s with %s",
fnamebuf, fname);