-
-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Additions for compiling plymouth #1312
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
Fixed comments + provided a test for rpmatch. |
return 0; | ||
if(resp[0] == 'y' || resp[0] == 'Y') | ||
return 1; | ||
if(resp[0] == 'n' || resp[0] == 'N') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rpmatch shouldn't really accept something like yno
and interpret it as yes... so these checks should probably be inlined with the prior strcasecmps. eg:
if(!strcasecmp("yes", resp) || !strcasecmp("y", resp))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should, and the man page specifically mentions this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where does it say that? Because i can't find it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
afaict it just says you have to match ^[Yy]
and ^[Nn]
regardless of language, not ^[Yy].*
or ^[Nn].*
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
^[Yy]
and ^[Nn]
don't match whole strings, they match anything that starts with Y/y/N/n.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay, that being the case I think this is stupid behaviour that we should not be emulating
Updated to apply fixes. |
No description provided.