summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-05-10 13:42:48 +0000
committerJim Meyering <jim@meyering.net>2003-05-10 13:42:48 +0000
commitf4c0d12cb0c306fc4140321425cc9a786a202fa5 (patch)
treec8e0eeb733d19796efa89b726e28532d52091bdc /src
parent6c1a29f06f829f2835a35774b3d93a2d783a66ec (diff)
downloadcoreutils-f4c0d12cb0c306fc4140321425cc9a786a202fa5.tar.xz
(main): Handle argc < optind.
Diffstat (limited to 'src')
-rw-r--r--src/who.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/who.c b/src/who.c
index 3f3c42257..7f0710893 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;