aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/ubi-utils/patches/010-fix-rpmatch.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-04-03 14:26:42 +0000
committerJohn Crispin <blogic@openwrt.org>2014-04-03 14:26:42 +0000
commit937a78b3060c7425ccffa69686c44129c867e6fb (patch)
tree83f62763576b30f8a1224af6e55326e8a1f655f3 /package/utils/ubi-utils/patches/010-fix-rpmatch.patch
parente60bb265de95c48bc31e9d3da1af6ad6c94def99 (diff)
downloadupstream-937a78b3060c7425ccffa69686c44129c867e6fb.tar.gz
upstream-937a78b3060c7425ccffa69686c44129c867e6fb.tar.bz2
upstream-937a78b3060c7425ccffa69686c44129c867e6fb.zip
ubi-utils: mini version of mtd-utils that only includes ubi tools
Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40367 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/utils/ubi-utils/patches/010-fix-rpmatch.patch')
-rw-r--r--package/utils/ubi-utils/patches/010-fix-rpmatch.patch19
1 files changed, 19 insertions, 0 deletions
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;
+ }