aboutsummaryrefslogtreecommitdiffstats
path: root/package/utils/ubi-utils/patches/010-fix-rpmatch.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2016-07-06 10:32:07 +0200
committerJohn Crispin <john@phrozen.org>2016-07-11 14:19:47 +0200
commit9352603fff591a2412fb825aa2f5ef386990c99a (patch)
tree2109db9939ab0ba838a0cb86afa61a51a36932ff /package/utils/ubi-utils/patches/010-fix-rpmatch.patch
parent17f4d3967eec59db147d2f5b1c45dc9cf30a883e (diff)
downloadupstream-9352603fff591a2412fb825aa2f5ef386990c99a.tar.gz
upstream-9352603fff591a2412fb825aa2f5ef386990c99a.tar.bz2
upstream-9352603fff591a2412fb825aa2f5ef386990c99a.zip
mtd-utils: merge ubi/nand-utils into one package
Signed-off-by: John Crispin <john@phrozen.org>
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, 0 insertions, 19 deletions
diff --git a/package/utils/ubi-utils/patches/010-fix-rpmatch.patch b/package/utils/ubi-utils/patches/010-fix-rpmatch.patch
deleted file mode 100644
index 9d0de7f521..0000000000
--- a/package/utils/ubi-utils/patches/010-fix-rpmatch.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- a/include/common.h
-+++ b/include/common.h
-@@ -137,10 +137,12 @@ static inline bool prompt(const char *ms
- }
-
- 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;
- }