+.\" $OpenBSD: fingerd.8,v 1.4 1996/12/08 13:29:53 downsj Exp $
+.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" SUCH DAMAGE.
.\"
.\" from: @(#)fingerd.8 8.1 (Berkeley) 6/4/93
-.\" $Id: fingerd.8,v 1.3 1996/07/16 17:55:42 millert Exp $
+.\" $Id: fingerd.8,v 1.4 1996/12/08 13:29:53 downsj Exp $
.\"
.Dd June 4, 1993
.Dt FINGERD 8
.Op Fl l
.Op Fl u
.Op Fl m
+.Op Fl M
.Op Fl p
.Op Fl S
.Op Fl P Ar filename
users' real names, unless the
.Fl m
option is supplied.
+.It Fl M
+Enables matching of
+.Ar user
+names. This is disabled by default if the system is running YP.
.It Fl p
Prevents
.Nm finger
#ifndef lint
/*static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93";*/
-static char rcsid[] = "$Id: fingerd.c,v 1.4 1996/07/16 17:55:43 millert Exp $";
+static char rcsid[] = "$Id: fingerd.c,v 1.5 1996/12/08 13:29:54 downsj Exp $";
#endif /* not lint */
#include <sys/types.h>
logging = secure = user_required = short_list = 0;
openlog("fingerd", LOG_PID | LOG_CONS, LOG_DAEMON);
opterr = 0;
- while ((ch = getopt(argc, argv, "sluSmpP:")) != EOF)
+ while ((ch = getopt(argc, argv, "sluSmMpP:")) != EOF)
switch (ch) {
case 'l':
logging = 1;
case 'm':
av[ac++] = "-m";
break;
+ case 'M':
+ av[ac++] = "-M";
+ break;
case 'p':
av[ac++] = "-p";
break;