diff options
author | John Crispin <blogic@openwrt.org> | 2014-04-03 14:26:42 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2014-04-03 14:26:42 +0000 |
commit | 937a78b3060c7425ccffa69686c44129c867e6fb (patch) | |
tree | 83f62763576b30f8a1224af6e55326e8a1f655f3 /package/utils/ubi-utils/patches/010-fix-rpmatch.patch | |
parent | e60bb265de95c48bc31e9d3da1af6ad6c94def99 (diff) | |
download | upstream-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.patch | 19 |
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; + } |