skill: fix too greedy option parser
Patch based on submitted patch by Yoshio Nakamura A patch from Debian. Bug-Debian: http://bugs.debian.org/331419 Bug-Debian: http://bugs.debian.org/569030 Backported-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
parent
16329a7c3c
commit
057f895529
2
skill.c
2
skill.c
@ -462,6 +462,8 @@ selection_collection:
|
|||||||
switch(force){ /* fall through each data type */
|
switch(force){ /* fall through each data type */
|
||||||
default: skillsnice_usage();
|
default: skillsnice_usage();
|
||||||
case 0: /* not forced */
|
case 0: /* not forced */
|
||||||
|
if (argptr && argptr[0] == '-') /* its the next argument not a parameter */
|
||||||
|
continue;
|
||||||
case 't':
|
case 't':
|
||||||
if(argc){
|
if(argc){
|
||||||
struct stat sbuf;
|
struct stat sbuf;
|
||||||
|
Loading…
Reference in New Issue
Block a user