Re: Can not build with out support for hard or symbolic links.

2005-04-10 Thread Wayne Davison
On Sat, Apr 09, 2005 at 10:39:13PM -0400, John E. Malmberg wrote:
 Everywhere that RSYNC uses SUPPORT_LINKS and SUPPORT_HARD_LINKS it is 
 testing if the macros are defined, not what their values are.

Thanks for pointing that out.  Attached is the fix I just checked into
CVS.

..wayne..
--- rsync.h 28 Mar 2005 17:08:47 -  1.261
+++ rsync.h 10 Apr 2005 06:21:23 -
@@ -675,8 +675,12 @@ extern char *sys_errlist[];
 extern int errno;
 #endif
 
-#define SUPPORT_LINKS HAVE_READLINK
-#define SUPPORT_HARD_LINKS HAVE_LINK
+#ifdef HAVE_READLINK
+#define SUPPORT_LINKS 1
+#endif
+#ifdef HAVE_LINK
+#define SUPPORT_HARD_LINKS 1
+#endif
 
 #define SIGNAL_CAST (RETSIGTYPE (*)())
 
-- 
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Can not build with out support for hard or symbolic links.

2005-04-09 Thread John E. Malmberg
The file RSYNC.H always defines the macros SUPPORT_LINKS and 
SUPPORT_HARD_LINKS.

#define SUPPORT_LINKS HAVE_READLINK
#define SUPPORT_HARD_LINKS HAVE_LINK
Everywhere that RSYNC uses SUPPORT_LINKS and SUPPORT_HARD_LINKS it is 
testing if the macros are defined, not what their values are.

This results that the code will always be built with support for hard 
and symbolic links.

-John
[EMAIL PROTECTED]
Personal Opinion Only
--
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html