Replace -i with -8, which enables new 8-bit pass-through on the client.

This commit is contained in:
kim 2002-09-12 01:40:54 +00:00
parent b3399fd721
commit 968e6be5e6
2 changed files with 10 additions and 27 deletions

View File

@ -1,4 +1,4 @@
.\" $NetBSD: fingerd.8,v 1.13 2002/09/10 03:29:01 kim Exp $
.\" $NetBSD: fingerd.8,v 1.14 2002/09/12 01:40:54 kim Exp $
.\"
.\" Copyright (c) 1980, 1991, 1993
.\" The Regents of the University of California. All rights reserved.
@ -41,16 +41,8 @@
.Nd remote user information server
.Sh SYNOPSIS
.Nm
.Op Fl s
.Op Fl l
.Op Fl u
.Op Fl h
.Op Fl m
.Op Fl p
.Op Fl S
.Op Fl g
.Op Fl sluhmpSg8
.Op Fl P Ar filename
.Op Fl i
.Sh DESCRIPTION
.Nm
is a simple protocol based on
@ -147,6 +139,8 @@ This overrides the
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 8
Enable 8-bit output.
.It Fl P
Use an alternate program as the local information provider.
The default local program
@ -158,8 +152,6 @@ By specifying a customized local server,
this option allows a system manager
to have more control over what information is
provided to remote sites.
.It Fl i
Enable 8-bit output.
.El
.Sh SEE ALSO
.Xr finger 1 ,

View File

@ -1,4 +1,4 @@
/* $NetBSD: fingerd.c,v 1.18 2002/09/10 04:06:26 itojun Exp $ */
/* $NetBSD: fingerd.c,v 1.19 2002/09/12 01:40:54 kim Exp $ */
/*
* Copyright (c) 1983, 1993
@ -44,7 +44,7 @@ __COPYRIGHT(
#if 0
static char sccsid[] = "from: @(#)fingerd.c 8.1 (Berkeley) 6/4/93";
#else
__RCSID("$NetBSD: fingerd.c,v 1.18 2002/09/10 04:06:26 itojun Exp $");
__RCSID("$NetBSD: fingerd.c,v 1.19 2002/09/12 01:40:54 kim Exp $");
#endif
#endif /* not lint */
@ -84,7 +84,7 @@ main(argc, argv)
logging = no_forward = user_required = short_list = 0;
openlog("fingerd", LOG_PID, LOG_DAEMON);
opterr = 0;
while ((ch = getopt(argc, argv, "gsluShmpP:i")) != -1)
while ((ch = getopt(argc, argv, "gsluShmpP:8")) != -1)
switch (ch) {
case 'l':
logging = 1;
@ -98,18 +98,6 @@ main(argc, argv)
case 'u':
user_required = 1;
break;
case 'i':
/*
* This is a hack to enable single-byte 8-bit
* characters in the output of the default
* finger program. The character set is not
* communicated to the network client, and the
* exact value does not matter much as long
* as it enables as many 8-bit characters as
* possible.
*/
(void) putenv("LC_CTYPE=en_US.ISO8859-15");
break;
case 'S':
short_list = 1;
av[ac++] = "-s";
@ -126,6 +114,9 @@ main(argc, argv)
case 'g':
av[ac++] = "-g";
break;
case '8':
av[ac++] = "-8";
break;
case '?':
default:
err("illegal option -- %c", ch);