aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/523-conffiles_fix.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2008-01-03 02:25:16 +0000
committerFelix Fietkau <nbd@openwrt.org>2008-01-03 02:25:16 +0000
commit3e64a8c618bb9886c214ab2ec5c267bfb880fdad (patch)
tree9a09bd69bea7eaa3352066a8c9a6117d6bc650a0 /package/busybox/patches/523-conffiles_fix.patch
parent418f0e9c10a32a453638d03497ffa9fb14ea1a22 (diff)
downloadupstream-3e64a8c618bb9886c214ab2ec5c267bfb880fdad.tar.gz
upstream-3e64a8c618bb9886c214ab2ec5c267bfb880fdad.tar.bz2
upstream-3e64a8c618bb9886c214ab2ec5c267bfb880fdad.zip
fix ipkg segfault and add conffiles patch from #2946
SVN-Revision: 10090
Diffstat (limited to 'package/busybox/patches/523-conffiles_fix.patch')
-rw-r--r--package/busybox/patches/523-conffiles_fix.patch21
1 files changed, 21 insertions, 0 deletions
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;
+