From: downsj Date: Sun, 8 Dec 1996 13:29:53 +0000 (+0000) Subject: Add -M. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b4e415d7a913738dec83fde58248d18c18006c63;p=openbsd Add -M. --- diff --git a/libexec/fingerd/fingerd.8 b/libexec/fingerd/fingerd.8 index aa1df25d703..065bfd826ff 100644 --- a/libexec/fingerd/fingerd.8 +++ b/libexec/fingerd/fingerd.8 @@ -1,3 +1,5 @@ +.\" $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. .\" @@ -30,7 +32,7 @@ .\" 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 @@ -44,6 +46,7 @@ .Op Fl l .Op Fl u .Op Fl m +.Op Fl M .Op Fl p .Op Fl S .Op Fl P Ar filename @@ -118,6 +121,10 @@ is usually a login name; however, matching will also be done on the 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 diff --git a/libexec/fingerd/fingerd.c b/libexec/fingerd/fingerd.c index dcf17992fcb..d7a2600f758 100644 --- a/libexec/fingerd/fingerd.c +++ b/libexec/fingerd/fingerd.c @@ -39,7 +39,7 @@ static char copyright[] = #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 @@ -76,7 +76,7 @@ main(argc, argv) 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; @@ -97,6 +97,9 @@ main(argc, argv) case 'm': av[ac++] = "-m"; break; + case 'M': + av[ac++] = "-M"; + break; case 'p': av[ac++] = "-p"; break;