The -s option was broken (missing braces around an else clause).
Noticed by: Thomas Stromberg <tstromberg@rtci.com> Obtained from: OpenBSD
This commit is contained in:
parent
b26a5ea6fe
commit
d68e2acd95
@ -1709,12 +1709,14 @@ setup(argc, argv)
|
||||
++sflag;
|
||||
if (eoptarg == NULL)
|
||||
schar = SCHAR;
|
||||
else
|
||||
else {
|
||||
schar = *eoptarg++;
|
||||
if (*eoptarg != '\0') {
|
||||
(void)fprintf(err,
|
||||
"pr: invalid value for -s %s\n", eoptarg);
|
||||
return(1);
|
||||
if (*eoptarg != '\0') {
|
||||
(void)fprintf(err,
|
||||
"pr: invalid value for -s %s\n",
|
||||
eoptarg);
|
||||
return(1);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 't':
|
||||
|
Loading…
Reference in New Issue
Block a user