From 716ca530e1c4515d8683c9d5be3d56b301758b66 Mon Sep 17 00:00:00 2001 From: James <> Date: Wed, 4 Nov 2015 11:49:21 +0000 Subject: trunk-47381 --- 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 0000000..9d0de7f --- /dev/null +++ b/package/utils/ubi-utils/patches/010-fix-rpmatch.patch @@ -0,0 +1,19 @@ +--- 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; + } -- cgit v1.2.3