File 0001-comparison-of-peer-names-provided-via-command-line-s.patch of Package csync2.8665

From f2edd34d1c4885d0c5bedb756db85aad624f72b7 Mon Sep 17 00:00:00 2001
From: Thomas Abraham <tabraham@suse.com>
Date: Tue, 6 Mar 2018 15:12:23 -0500
Subject: [PATCH] comparison of peer names provided via command line should not
 be case sensitive

---
 update.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/update.c b/update.c
index 3283207..ad31fc8 100644
--- a/update.c
+++ b/update.c
@@ -838,7 +838,7 @@ void csync_update(const char ** patlist, int patnum, int recursive, int dry_run)
 			int i=0, pnamelen = strlen(t->value);
 
 			while (active_peerlist[i]) {
-				if ( !strncmp(active_peerlist+i, t->value, pnamelen) &&
+				if ( !strncasecmp(active_peerlist+i, t->value, pnamelen) &&
 				     (active_peerlist[i+pnamelen] == ',' || !active_peerlist[i+pnamelen]) )
 					goto found_asactive;
 				while (active_peerlist[i])
-- 
2.16.4

openSUSE Build Service is sponsored by