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:
Cyril Zhang 2021-05-13 08:52:51 -04:00 committed by Mark Johnston
parent e240dd0d50
commit f80d1c0035

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