summaryrefslogtreecommitdiff
path: root/usr.bin/w/w.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/w/w.c')
-rw-r--r--usr.bin/w/w.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/w/w.c b/usr.bin/w/w.c
index 7264d6bb469..e890b0d0ca0 100644
--- a/usr.bin/w/w.c
+++ b/usr.bin/w/w.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: w.c,v 1.19 1997/07/25 05:04:07 mickey Exp $ */
+/* $OpenBSD: w.c,v 1.20 1997/07/25 14:36:24 kstailey Exp $ */
/*-
* Copyright (c) 1980, 1991, 1993, 1994
@@ -139,7 +139,8 @@ main(argc, argv)
wcmd = 0;
p = "";
} else
- errx(1, "bad program name");
+ errx(1,
+ "this program should be invoked only as \"w\" or \"uptime\"");
memf = nlistf = NULL;
while ((ch = getopt(argc, argv, p)) != -1)