Red Hat Bugzilla – Bug 351591
yum is too liberal in accepting y/n input
Last modified: 2014-01-21 17:59:58 EST
When yum presents the
Is this ok [y/N]:
prompt, it only checks the first character entered. In my instance, I typed a
y, did something else, then typed n<enter>. This caused yum to accept my 'yn'
as a y. I'm attaching a patch against the yum git repo. I'd file this bug with
upstream, but I cannot use their bugzilla as they won't let anyone create a new
The patch makes the user enter 'y', 'n', 'yes', or 'no'.
Created attachment 236821 [details]
Simple proposed patch
checked in your patch, thanks.