summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorJohn Bowler <jbowler@nslu2-linux.org>2006-02-05 08:03:30 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-02-05 08:03:30 +0000
commit8726067c7f470e98632afb60c72f0f94ba8567f2 (patch)
tree9c560d57f70fb42d2121d8fbc3f7cba66fa841da /packages
parentdc20efdac5955750b579ad16e2515f63ab8d0f8e (diff)
ipkg: fix spurious characters in ipkg upgrade messages in 0.99.155
Diffstat (limited to 'packages')
-rw-r--r--packages/ipkg/ipkg-0.99.155/.mtn2git_empty0
-rw-r--r--packages/ipkg/ipkg-0.99.155/upgrade-message-garbage.patch14
-rw-r--r--packages/ipkg/ipkg_0.99.155.bb3
3 files changed, 16 insertions, 1 deletions
diff --git a/packages/ipkg/ipkg-0.99.155/.mtn2git_empty b/packages/ipkg/ipkg-0.99.155/.mtn2git_empty
new file mode 100644
index 0000000000..e69de29bb2
--- /dev/null
+++ b/packages/ipkg/ipkg-0.99.155/.mtn2git_empty
diff --git a/packages/ipkg/ipkg-0.99.155/upgrade-message-garbage.patch b/packages/ipkg/ipkg-0.99.155/upgrade-message-garbage.patch
new file mode 100644
index 0000000000..6e79f79341
--- /dev/null
+++ b/packages/ipkg/ipkg-0.99.155/upgrade-message-garbage.patch
@@ -0,0 +1,14 @@
+Prevent the output of spurious extra characters from
+the stack. This patch is in the manner of the rest of
+the code, there is no good reason for this.
+
+--- C/ipkg_install.c 1970-01-01 00:00:00.000000000 +0000
++++ C/ipkg_install.c 1970-01-01 00:00:00.000000000 +0000
+@@ -723,6 +723,7 @@ static int ipkg_install_check_downgrade(
+ return rc;
+ } else {
+ char message_out[15] ;
++ memset(message_out,'\x0',15);
+ if ( message )
+ strncpy( message_out,"Upgrading ",strlen("Upgrading ") );
+ else
diff --git a/packages/ipkg/ipkg_0.99.155.bb b/packages/ipkg/ipkg_0.99.155.bb
index 394af24f23..d3ef6e22a8 100644
--- a/packages/ipkg/ipkg_0.99.155.bb
+++ b/packages/ipkg/ipkg_0.99.155.bb
@@ -1,2 +1,3 @@
include ipkg.inc
-PR = "r0"
+PR = "r1"
+SRC_URI += "file://upgrade-message-garbage.patch;patch=1"