summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-08-16 20:34:21 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-08-16 20:34:21 +0000
commit17e96e5a3e53fb29db59531e05721706dc527a4d (patch)
treeafa6f8bbe7861621ee87b7e4d7dfd1b38708ea20 /libexec
parent35b34ef8eba1f3d1811b1ba77860118033238a99 (diff)
OpenBSD tags and document assumption about finger(1) arg parsing.
Diffstat (limited to 'libexec')
-rw-r--r--libexec/fingerd/fingerd.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c
index f91791671dc..38cddb4f8d3 100644
--- a/libexec/fingerd/fingerd.c
+++ b/libexec/fingerd/fingerd.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: fingerd.c,v 1.9 1997/08/16 20:34:20 millert Exp $ */
+
/*
* Copyright (c) 1983, 1993
* The Regents of the University of California. All rights reserved.
@@ -38,8 +40,11 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-/*static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$Id: fingerd.c,v 1.8 1997/07/25 19:41:14 mickey Exp $";
+#if 0
+static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93";
+#else
+static char rcsid[] = "$OpenBSD: fingerd.c,v 1.9 1997/08/16 20:34:20 millert Exp $";
+#endif
#endif /* not lint */
#include <sys/types.h>
@@ -123,6 +128,10 @@ main(argc, argv)
if (!fgets(line, sizeof(line), stdin))
exit(1);
+ /*
+ * Note: we assume that finger(1) will treat "--" as end of
+ * command args (ie: that it uses getopt(3)).
+ */
av[ac++] = "--";
comp = &av[1];
for (lp = line, ap = &av[ac]; ac < ENTRIES;) {