Bug 351591 - yum is too liberal in accepting y/n input
Summary: yum is too liberal in accepting y/n input
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 7
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-10-25 01:34 UTC by Josh Bressers
Modified: 2014-01-21 22:59 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-12-07 03:45:30 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Simple proposed patch (568 bytes, patch)
2007-10-25 01:34 UTC, Josh Bressers
no flags Details | Diff

Description Josh Bressers 2007-10-25 01:34:00 UTC
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
account easily.

The patch makes the user enter 'y', 'n', 'yes', or 'no'.

Comment 1 Josh Bressers 2007-10-25 01:34:00 UTC
Created attachment 236821 [details]
Simple proposed patch

Comment 2 Seth Vidal 2007-12-07 03:45:30 UTC
checked in your patch, thanks.



Note You need to log in before you can comment on or make changes to this bug.