From 55c3ccd75fa79f2ce01aac5fd7b85047f3ef6cc0 Mon Sep 17 00:00:00 2001 From: Dennis Groenen Date: Tue, 31 Jan 2012 16:47:37 +0100 Subject: [PATCH] update BusyBox 1.19.3 hotfixes --- debian/patches/hotfixes/busybox-1.19.3-mdev.patch | 11 +++++++++++ debian/patches/series | 1 + 2 files changed, 12 insertions(+) create mode 100644 debian/patches/hotfixes/busybox-1.19.3-mdev.patch diff --git a/debian/patches/hotfixes/busybox-1.19.3-mdev.patch b/debian/patches/hotfixes/busybox-1.19.3-mdev.patch new file mode 100644 index 0000000..653ac35 --- /dev/null +++ b/debian/patches/hotfixes/busybox-1.19.3-mdev.patch @@ -0,0 +1,11 @@ +--- busybox-1.19.3/util-linux/mdev.c ++++ busybox-1.19.3-mdev/util-linux/mdev.c +@@ -610,7 +610,7 @@ int mdev_main(int argc UNUSED_PARAM, cha + int seqlen; + char seqbuf[sizeof(int)*3 + 2]; + +- seqlen = open_read_close("mdev.seq", seqbuf, sizeof(seqbuf-1)); ++ seqlen = open_read_close("mdev.seq", seqbuf, sizeof(seqbuf) - 1); + if (seqlen < 0) { + seq = NULL; + break; diff --git a/debian/patches/series b/debian/patches/series index 45a6a22..6de06fa 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -26,6 +26,7 @@ showkey-default-option.patch hotfixes/busybox-1.19.3-getty.patch hotfixes/busybox-1.19.3-modinfo.patch hotfixes/busybox-1.19.3-wget.patch +hotfixes/busybox-1.19.3-mdev.patch #Patched pulled from busybox git git-backports/0001-lineedit-fix-atomic-replace-of-history-file-hush-fix.patch -- 1.7.9.5