sort: Stop "fixing" obsolete key syntax after -- flag

PR:		255798
Reviewed by:	markj
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D30234
This commit is contained in:
Cyril Zhang 2021-05-13 08:52:51 -04:00 committed by Mark Johnston
parent 8b3c4231ab
commit fa43162c63

View File

@ -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];