#define SUPPORT_LINKS HAVE_READLINK
#define SUPPORT_HARD_LINKS HAVE_LINK
-/* This could be bad on systems which have no lchown and where chown
- * follows symbollic links. On such systems it might be better not to
- * try to chown symlinks at all. */
-#ifndef HAVE_LCHOWN
-#define lchown chown
-#endif
-
#define SIGNAL_CAST (RETSIGTYPE (*)())
#ifndef EWOULDBLOCK
{
if (dry_run) return 0;
RETURN_ERROR_IF_RO_OR_LO;
+#ifdef HAVE_LCHOWN
+#define lchown chown
+#endif
return lchown(path, owner, group);
}