From: Jim Meyering Date: Sat, 10 May 2003 13:42:48 +0000 (+0000) Subject: (main): Handle argc < optind. X-Git-Tag: v5.0.1~553 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4c0d12cb0c306fc4140321425cc9a786a202fa5;p=thirdparty%2Fcoreutils.git (main): Handle argc < optind. --- diff --git a/src/who.c b/src/who.c index 3f3c42257c..7f07108935 100644 --- a/src/who.c +++ b/src/who.c @@ -747,6 +747,7 @@ main (int argc, char **argv) switch (argc - optind) { + case -1: case 0: /* who */ who (UTMP_FILE); break;