4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-01-19 04:49:25 +08:00

Cygwin: ps: make sure later format flags override earlier format flags

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2024-02-01 17:17:57 +01:00
parent 92b7ba4bb8
commit 6d0769efa9

View File

@ -182,11 +182,15 @@ main (int argc, char *argv[])
break;
case 'f':
fflag = 1;
lflag = 0;
sflag = 0;
break;
case 'h':
usage (stdout, 0);
case 'l':
fflag = 0;
lflag = 1;
sflag = 0;
break;
case 'p':
proc_id = atoi (optarg);
@ -194,6 +198,8 @@ main (int argc, char *argv[])
found_proc_id = false;
break;
case 's':
fflag = 0;
lflag = 0;
sflag = 1;
break;
case 'u':