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:
Craig Small 2010-02-10 11:00:26 +00:00 committed by Craig Small
parent 16329a7c3c
commit 057f895529

View File

@ -462,6 +462,8 @@ selection_collection:
switch(force){ /* fall through each data type */
default: skillsnice_usage();
case 0: /* not forced */
if (argptr && argptr[0] == '-') /* its the next argument not a parameter */
continue;
case 't':
if(argc){
struct stat sbuf;