2014-04-03 14:26:42 +00:00
|
|
|
--- a/include/common.h
|
|
|
|
+++ b/include/common.h
|
2018-03-17 23:53:32 +00:00
|
|
|
@@ -152,10 +152,12 @@ static inline bool prompt(const char *ms
|
2014-04-03 14:26:42 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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;
|
|
|
|
}
|