diff options
author | Felix Fietkau <nbd@openwrt.org> | 2008-01-03 02:25:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2008-01-03 02:25:16 +0000 |
commit | 1cd4f900e65d7a31bb06385cdedfdd464414462a (patch) | |
tree | 13516fdc21688dc557045a329e7f61166ba68707 /package/busybox/patches | |
parent | dc6be98d9b7f6071643cec9198f00f5e3cff32ea (diff) | |
download | master-187ad058-1cd4f900e65d7a31bb06385cdedfdd464414462a.tar.gz master-187ad058-1cd4f900e65d7a31bb06385cdedfdd464414462a.tar.bz2 master-187ad058-1cd4f900e65d7a31bb06385cdedfdd464414462a.zip |
fix ipkg segfault and add conffiles patch from #2946
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10090 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches')
-rw-r--r-- | package/busybox/patches/522-memleak.patch | 12 | ||||
-rw-r--r-- | package/busybox/patches/523-conffiles_fix.patch | 21 |
2 files changed, 21 insertions, 12 deletions
diff --git a/package/busybox/patches/522-memleak.patch b/package/busybox/patches/522-memleak.patch index 1bcfb8f408..ab639c59bf 100644 --- a/package/busybox/patches/522-memleak.patch +++ b/package/busybox/patches/522-memleak.patch @@ -1,15 +1,3 @@ -Index: busybox-1.8.2/archival/libipkg/ipkg_install.c -=================================================================== ---- busybox-1.8.2.orig/archival/libipkg/ipkg_install.c 2007-12-30 00:02:53.577161007 +0100 -+++ busybox-1.8.2/archival/libipkg/ipkg_install.c 2007-12-30 00:03:14.042327251 +0100 -@@ -500,6 +500,7 @@ - } - } - } -+ pkg_free_installed_files(new_pkg); - return 0; - } - Index: busybox-1.8.2/archival/libipkg/pkg.c =================================================================== --- busybox-1.8.2.orig/archival/libipkg/pkg.c 2007-12-30 00:27:32.001919565 +0100 diff --git a/package/busybox/patches/523-conffiles_fix.patch b/package/busybox/patches/523-conffiles_fix.patch new file mode 100644 index 0000000000..8206faf91b --- /dev/null +++ b/package/busybox/patches/523-conffiles_fix.patch @@ -0,0 +1,21 @@ +Index: busybox-1.8.2/archival/libipkg/pkg.c +=================================================================== +--- busybox-1.8.2.orig/archival/libipkg/pkg.c 2008-01-02 21:53:12.616453611 +0100 ++++ busybox-1.8.2/archival/libipkg/pkg.c 2008-01-02 21:54:41.462489150 +0100 +@@ -587,13 +587,14 @@ + return NULL; + } + temp[0]='\0'; +- strncpy(temp, "Conffiles:\n", 12); ++ strncpy(temp, "Conffiles: ", 12); + 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; + |