mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
sort: Stop "fixing" obsolete key syntax after -- flag
PR: 255798
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D30234
(cherry picked from commit fa43162c63)
This commit is contained in:
parent
e240dd0d50
commit
f80d1c0035
1 changed files with 5 additions and 0 deletions
|
|
@ -858,6 +858,11 @@ fix_obsolete_keys(int *argc, char **argv)
|
|||
|
||||
arg1 = argv[i];
|
||||
|
||||
if (strcmp(arg1, "--") == 0) {
|
||||
/* Following arguments are treated as filenames. */
|
||||
break;
|
||||
}
|
||||
|
||||
if (strlen(arg1) > 1 && arg1[0] == '+') {
|
||||
int c1, f1;
|
||||
char sopts1[128];
|
||||
|
|
|
|||
Loading…
Reference in a new issue