Remove code #ifndef'ed in prev. commit to stay in sync with OpenBSD
v1.21 which just do that.
This commit is contained in:
parent
f27c7b4713
commit
6843acf8ac
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162557
@ -568,18 +568,6 @@ getopt_internal(int nargc, char * const *nargv, const char *options,
|
||||
} else
|
||||
optarg = nargv[optind];
|
||||
}
|
||||
#ifndef GNU_COMPATIBLE
|
||||
/* XXX: disable test for :: if PC? (GNU doesn't) */
|
||||
else if (!(flags & FLAG_PERMUTE)) {
|
||||
/*
|
||||
* If permutation is disabled, we can accept an
|
||||
* optional arg separated by whitespace so long
|
||||
* as it does not start with a dash (-).
|
||||
*/
|
||||
if (optind + 1 < nargc && *nargv[optind + 1] != '-')
|
||||
optarg = nargv[++optind];
|
||||
}
|
||||
#endif
|
||||
place = EMSG;
|
||||
++optind;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user