Accept both 'y' and 'Y' as positive confirmation when asking the user
if auc should proceed with requesting and installing an upgrade.
Signed-off-by: Daniel Golle <redacted>
static int ask_user(void)
{
+ char user_input;
fprintf(stderr, "Are you sure you want to continue the upgrade process? [N/y] ");
- if (getchar() != 'y')
+ user_input = getchar();
+ if ((user_input != 'y') && (user_input != 'Y'))
return -EINTR;
+
return 0;
}