the link() function. The changes test OK on SuSE Linux and on my own
Stratus VOS system, but I would be grateful if other folks could
double-check this change. Paul G.
&& !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);