summaryrefslogtreecommitdiffstats
path: root/libexec/fingerd
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-07-20 22:40:37 +0000
committerderaadt <deraadt@openbsd.org>1999-07-20 22:40:37 +0000
commit89cdc6af71e19430c11c4f021c77bb8dc5ec557f (patch)
tree3cc1198cfcfae3844440025d232dfd156f2ba84e /libexec/fingerd
parentAdd wdc pcmcia controller. As the other new ATA code, it needs to be (diff)
downloadwireguard-openbsd-89cdc6af71e19430c11c4f021c77bb8dc5ec557f.tar.xz
wireguard-openbsd-89cdc6af71e19430c11c4f021c77bb8dc5ec557f.zip
bad arguments? usage() should syslog()
Diffstat (limited to 'libexec/fingerd')
-rw-r--r--libexec/fingerd/fingerd.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c
index 776b43b952a..87cee1cc7ea 100644
--- a/libexec/fingerd/fingerd.c
+++ b/libexec/fingerd/fingerd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fingerd.c,v 1.14 1999/07/03 18:24:13 deraadt Exp $ */
+/* $OpenBSD: fingerd.c,v 1.15 1999/07/20 22:40:37 deraadt Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -43,7 +43,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93";
#else
-static char rcsid[] = "$OpenBSD: fingerd.c,v 1.14 1999/07/03 18:24:13 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: fingerd.c,v 1.15 1999/07/20 22:40:37 deraadt Exp $";
#endif
#endif /* not lint */
@@ -62,6 +62,16 @@ static char rcsid[] = "$OpenBSD: fingerd.c,v 1.14 1999/07/03 18:24:13 deraadt Ex
#include "pathnames.h"
void err __P((const char *, ...));
+void usage __P((void));
+
+void
+usage()
+{
+ syslog(LOG_ERR,
+ "usage: ftpd [-slumMpS] [-P filename]");
+ exit(2);
+}
+
int
main(argc, argv)
@@ -109,7 +119,7 @@ main(argc, argv)
break;
case '?':
default:
- err("illegal option -- %c", ch);
+ usage();
}
if (logging) {