From 937a78b3060c7425ccffa69686c44129c867e6fb Mon Sep 17 00:00:00 2001 From: John Crispin Date: Thu, 3 Apr 2014 14:26:42 +0000 Subject: ubi-utils: mini version of mtd-utils that only includes ubi tools Signed-off-by: John Crispin git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40367 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/utils/ubi-utils/patches/010-fix-rpmatch.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 package/utils/ubi-utils/patches/010-fix-rpmatch.patch (limited to 'package/utils/ubi-utils/patches/010-fix-rpmatch.patch') diff --git a/package/utils/ubi-utils/patches/010-fix-rpmatch.patch b/package/utils/ubi-utils/patches/010-fix-rpmatch.patch new file mode 100644 index 0000000000..4a04676b49 --- /dev/null +++ b/package/utils/ubi-utils/patches/010-fix-rpmatch.patch @@ -0,0 +1,19 @@ +--- a/include/common.h ++++ b/include/common.h +@@ -122,10 +122,12 @@ + } + + if (strcmp("\n", line) != 0) { +- switch (rpmatch(line)) { +- case 0: ret = false; break; +- case 1: ret = true; break; +- case -1: ++ switch (line[0]) { ++ case 'N': ++ case 'n': ret = false; break; ++ case 'Y': ++ case 'y': ret = true; break; ++ default: + puts("unknown response; please try again"); + continue; + } -- cgit v1.2.3