From: cvs2git Date: Thu, 14 Oct 2010 11:07:55 +0000 (+0000) Subject: This commit was manufactured by cvs2git to create branch 'unlabeled-1.11.2'. X-Git-Tag: deadbranch-1.11.2~2 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fcoova-chilli.git;a=commitdiff_plain;h=143fd862b0cd9d377a17ebc24b1ec2a24135a144 This commit was manufactured by cvs2git to create branch 'unlabeled-1.11.2'. Sprout from master 2010-10-14 11:07:55 UTC sparky '- added link patch' Delete: link.patch strncpy.patch --- diff --git a/link.patch b/link.patch deleted file mode 100644 index d8f6f2f..0000000 --- a/link.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- coova-chilli-1.2.4/src/Makefile.am~ 2010-08-24 13:29:08.000000000 +0200 -+++ coova-chilli-1.2.4/src/Makefile.am 2010-10-14 13:00:28.640702861 +0200 -@@ -24,6 +24,7 @@ - iphash.c lookup3.c sfhash.c lookup.c system.h cmdsock.c util.c \ - garden.c ssl.c dns.c session.c pkt.c chksum.c net.c \ - ms_chap.c options.c statusfile.c conn.c sig.c -+libchilli_la_LIBADD = $(top_builddir)/bstring/libbstring.la ${LIBRT} - - AM_CFLAGS = -D_GNU_SOURCE -Wall -Werror -fno-builtin -fno-strict-aliasing \ - -O2 -fomit-frame-pointer -funroll-loops -pipe \ diff --git a/strncpy.patch b/strncpy.patch deleted file mode 100644 index a6921f6..0000000 --- a/strncpy.patch +++ /dev/null @@ -1,20 +0,0 @@ ---- coova-chilli-1.2.4/src/chilli.c.orig 2010-08-24 13:29:08.000000000 +0200 -+++ coova-chilli-1.2.4/src/chilli.c 2010-09-30 13:26:40.000000000 +0200 -@@ -966,8 +966,15 @@ - - strncpy(appconn->s_state.redir.username, mac, USERNAMESIZE); - -- if (_options.macsuffix) -- strncat(appconn->s_state.redir.username, _options.macsuffix, USERNAMESIZE); -+ if (_options.macsuffix) { -+ size_t ulen = strlen(appconn->s_state.redir.username + ulen); -+ size_t size = USERNAMESIZE - ulen; -+ -+ if (size) { -+ appconn->s_state.redir.username[--size + ulen] = '\0'; -+ strncpy(appconn->s_state.redir.username + ulen, _options.macsuffix, size); -+ } -+ } - - username = appconn->s_state.redir.username; - } else {