find: Make -H and -L flag handling clearer

This commit is contained in:
Michael Forney 2018-09-25 17:57:51 -07:00
parent d8656b0189
commit 48d04ae446
1 changed files with 10 additions and 3 deletions

13
find.c
View File

@ -1023,9 +1023,16 @@ main(int argc, char **argv)
struct tok *t; struct tok *t;
ARGBEGIN { ARGBEGIN {
case 'H': gflags.l = !(gflags.h = 1); break; case 'H':
case 'L': gflags.h = !(gflags.l = 1); break; gflags.h = 1;
default : usage(); gflags.l = 0;
break;
case 'L':
gflags.l = 1;
gflags.h = 0;
break;
default:
usage();
} ARGEND } ARGEND
paths = argv; paths = argv;