add "-g" flag: this just gets passed to finger.
This commit is contained in:
parent
2fb53b41ca
commit
2db0ee4c18
|
@ -1,4 +1,4 @@
|
|||
.\" $NetBSD: fingerd.8,v 1.5 1997/01/20 21:01:29 thorpej Exp $
|
||||
.\" $NetBSD: fingerd.8,v 1.6 1997/09/09 02:40:42 mrg Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 1980, 1991, 1993
|
||||
.\" The Regents of the University of California. All rights reserved.
|
||||
|
@ -47,6 +47,7 @@
|
|||
.Op Fl m
|
||||
.Op Fl p
|
||||
.Op Fl S
|
||||
.Op Fl g
|
||||
.Op Fl P Ar filename
|
||||
.Sh DESCRIPTION
|
||||
.Nm Fingerd
|
||||
|
@ -136,6 +137,8 @@ Prints user information in short mode, one line per user.
|
|||
This overrides the
|
||||
.Dq Pa Whois switch
|
||||
that may be passed in from the remote client.
|
||||
.It Fl g
|
||||
Do not show any gecos information besides the users' real names.
|
||||
.It Fl P
|
||||
Use an alternate program as the local information provider.
|
||||
The default local program
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: fingerd.c,v 1.4 1997/01/20 21:01:30 thorpej Exp $ */
|
||||
/* $NetBSD: fingerd.c,v 1.5 1997/09/09 02:40:43 mrg 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[] = "$NetBSD: fingerd.c,v 1.4 1997/01/20 21:01:30 thorpej Exp $";
|
||||
static char rcsid[] = "$NetBSD: fingerd.c,v 1.5 1997/09/09 02:40:43 mrg Exp $";
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
|
@ -81,7 +81,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, "gsluSmpP:")) != EOF)
|
||||
switch (ch) {
|
||||
case 'l':
|
||||
logging = 1;
|
||||
|
@ -105,6 +105,9 @@ main(argc, argv)
|
|||
case 'p':
|
||||
av[ac++] = "-p";
|
||||
break;
|
||||
case 'g':
|
||||
av[ac++] = "-g";
|
||||
break;
|
||||
case '?':
|
||||
default:
|
||||
err("illegal option -- %c", ch);
|
||||
|
|
Loading…
Reference in New Issue