From 843f6703a8c85312c3bade07013e56ea6fabe614 Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 2 Sep 2008 11:28:38 +0000 Subject: remove ipkg from busybox git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12498 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/busybox/patches/523-conffiles_fix.patch | 59 ------------------------- 1 file changed, 59 deletions(-) delete mode 100644 package/busybox/patches/523-conffiles_fix.patch (limited to 'package/busybox/patches/523-conffiles_fix.patch') diff --git a/package/busybox/patches/523-conffiles_fix.patch b/package/busybox/patches/523-conffiles_fix.patch deleted file mode 100644 index 09c93595f..000000000 --- a/package/busybox/patches/523-conffiles_fix.patch +++ /dev/null @@ -1,59 +0,0 @@ ---- a/archival/libipkg/pkg.c -+++ b/archival/libipkg/pkg.c -@@ -575,25 +575,28 @@ - return temp; - } - -- len = 14 ; -+ len = sizeof("Conffiles:") ; - for (iter = pkg->conffiles.head; iter; iter = iter->next) { - if (iter->data->name && iter->data->value) { -- len = len + (strlen(iter->data->name)+strlen(iter->data->value)+5); -- } -+ /* " " */ -+ len += 1+strlen(iter->data->name)+1+strlen(iter->data->value); -+ } - } -+ len +=2; /* "\n\0" */ - temp = (char *)realloc(temp,len); - if ( temp == NULL ){ - fprintf(stderr, "%s: out of memory\n", __FUNCTION__); - return NULL; - } - temp[0]='\0'; -- strncpy(temp, "Conffiles:\n", 12); -+ strcpy(temp, "Conffiles:"); - for (iter = pkg->conffiles.head; iter; iter = iter->next) { - if (iter->data->name && iter->data->value) { -- snprintf(line_str, LINE_LEN, "%s %s\n", iter->data->name, iter->data->value); -+ snprintf(line_str, LINE_LEN, " %s %s", iter->data->name, iter->data->value); - strncat(temp, line_str, strlen(line_str)); - } - } -+ strcat(temp, "\n"); - } else if (strcasecmp(field, "Conflicts") == 0) { - int i; - ---- a/archival/libipkg/pkg_parse.c -+++ b/archival/libipkg/pkg_parse.c -@@ -88,17 +88,14 @@ - if(!strncmp(raw, "Conffiles:", 10)) - raw += strlen("Conffiles:"); - -+ while(*raw && isspace(*raw)) raw++; - while(*raw && (sscanf(raw, "%s%s", file_name, md5sum) == 2)){ - conffile_list_append(&pkg->conffiles, file_name, md5sum); - /* fprintf(stderr, "%s %s ", file_name, md5sum);*/ -- while (*raw && isspace(*raw)) { -- raw++; -- } - raw += strlen(file_name); -- while (*raw && isspace(*raw)) { -- raw++; -- } -+ while(*raw && isspace(*raw)) raw++; - raw += strlen(md5sum); -+ while(*raw && isspace(*raw)) raw++; - } - } - -- cgit v1.2.3