--- rpms/cpu/sme8/cpu-1.4.3-mod-delete.patch 2010/11/06 06:06:39 1.3 +++ rpms/cpu/sme8/cpu-1.4.3-mod-delete.patch 2010/11/08 03:51:36 1.5 @@ -77,7 +77,7 @@ diff -up cpu-1.4.3/src/plugins/ldap/ld.c { char **temp; -@@ -286,19 +286,65 @@ ldapBuildListStr (int mod_op, char *mod_ +@@ -286,19 +286,66 @@ ldapBuildListStr (int mod_op, char *mod_ return mods; if (value == NULL || strlen(value) == strspn(value, " ")) @@ -127,6 +127,7 @@ diff -up cpu-1.4.3/src/plugins/ldap/ld.c + list_size++; + } + } ++ free(filter); + } + else + { @@ -230,3 +231,19 @@ diff -up cpu-1.4.3/src/plugins/ldap/user pos = pos->next; } } +diff -up cpu-1.4.3/src/util/parser.c.mod-delete cpu-1.4.3/src/util/parser.c +--- cpu-1.4.3/src/util/parser.c.mod-delete 2010-11-07 16:05:19.000000000 -0700 ++++ cpu-1.4.3/src/util/parser.c 2010-11-07 16:13:07.000000000 -0700 +@@ -290,11 +290,7 @@ + p->cont = true; + token = getToken(&cart[i], delim); + if ( token == NULL ) +- { +- printf("%d: Malformed file, cannot continue parsing.\n", +- __LINE__); +- return NULL; +- } ++ token = strdup (""); + } + p->attrval = delWhite(&token); + pos = parse;