Commit Graph

57 Commits

Author SHA1 Message Date
simonb 276fd1665c The Double-Semi-Colon Police. 2003-01-20 05:29:53 +00:00
wiz 1035faff1d writable, not writeable. 2003-01-06 20:30:28 +00:00
grant be8ae688ae New sentence, new line. 2002-09-30 11:08:56 +00:00
lukem 5d4973fe97 makefile delint. use NETBSDSRCDIR as appropriate 2002-09-18 14:00:33 +00:00
wiz 1e2e8ea0ca Sort options. Bump date for -8 addition. 2002-09-12 10:06:12 +00:00
kim b3399fd721 Implement 8-bit pass-through. 2002-09-12 01:31:41 +00:00
kim dfb75c5ad4 Add back locale support for data display.
We only enable 8-bit output for known single-byte locales, currently
ISO8859-*.  For all other locales the program output is unchanged.

RFC-1288 recommends that administrators have a mechanism to enable
characters greater than ASCII 126.  A suggested solution is an
environment variable.  The environment variables of choice here are
LC_CTYPE and LANG.

Thanks to Martin Husemann <martin@duskware.de> for the idea on checking
for known single-byte locales, to Johan Danielsson <joda@pdc.kth.se> for
checking RFC-1288, and to Jun-ichiro itojun Hagino <itojun@iijlab.net>
for insisting on retaining security for multi-byte locales.

If you experience any problems with these changes, please send me email
describing the problem and how to repeat it.  I'd rather try to fix the
problem than have this change reverted.  Thanks!
2002-09-10 03:02:40 +00:00
christos 3d5da4cf52 don't limit username printing to UT_NAMESIZE 2002-08-20 14:02:45 +00:00
itojun f695b9ecd3 revert attempt to make finger locale-dependent. (1) locale dependent
daemon is a bad idea, (2) there's no standard in 8bit finger, (3) there's no
guarantee that finger/fingerd uses the same locale, (4) existing finger client
could scream.  see tech-userlevel.
2002-08-20 00:27:59 +00:00
kim 36df211313 Obey the locale settings of the user when deciding what characters are
valid for output.  If something bad gets printed, either the locale
settings for the user (or output terminal) are wrong, or the LC_CTYPE
definitions on the system are invalid.
2002-08-11 03:59:31 +00:00
kim b33db3215a Obey the locale settings of the user when deciding what characters are
valid for output.  If something bad gets printed, either the locale
settings for the user (or output terminal) are wrong, or the LC_CTYPE
definitions on the system are invalid.
2002-08-10 16:10:46 +00:00
tron 4fe0cc63d7 Undo accidental change. 2002-08-05 08:05:03 +00:00
tron a626c50944 Avoid segmentation fault if "finger @somehost" is used. 2002-08-05 08:04:03 +00:00
christos 8bff4369e7 support utmpx; no lastlogx support yet. 2002-08-02 00:10:40 +00:00
wiz c63ad27273 Note -g in usage. bin/16592 by Ryan Younce. 2002-05-02 13:04:10 +00:00
christos e5785ba616 fix nested extern 2001-02-05 01:56:51 +00:00
christos 8b325711d4 don't include extern.h here; every other file includes it. 2001-02-05 01:56:38 +00:00
itojun bbef2fbaac errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd 2000-07-07 15:10:32 +00:00
drochner 85cbf55d16 Since our gcc doesn't warn about NULL format strings anymore, we can
fix the incorrect err(1, "%s", "") et al.
Closes PR bin/7592 by cgd.
1999-11-09 15:06:30 +00:00
itojun 98a141cc3f dual-stack finger.
% finger itojun@::1
% finger itojun@127.0.0.1
% finger itojun@localhost
	tries all addresses listed on DNS, uses first one with successful
	connect(2).
1999-07-02 06:01:22 +00:00
garbled 9e44e9b578 More and more .Os cleanups. .Os is defined in the tmac.doc-common file,
so we shouldn't override it with versions in the manpages.  Many more to
come.
1999-03-22 18:16:34 +00:00
christos 489005fa65 char -> unsigned char 1998-12-19 16:01:21 +00:00
christos 5d6b49ea05 gcc-2.8.1 printf format and brace warnings. 1998-12-19 16:01:01 +00:00
christos 4fe7015c6d SVR4 timezone portability 1998-12-19 16:00:33 +00:00
christos b4775af2e3 index -> strchr 1998-12-19 15:59:50 +00:00
frueauf 342f84988e Remove duplicate paragraph, mention .forward file, fixes pr 6177 by
Andreas Wrede.
1998-09-18 20:39:48 +00:00
tron f1bd8f538d Print login time left justified as suggested by Wolfgang Helbig in
PR bin/6131.
1998-09-09 17:22:31 +00:00
ross f670fa10c5 Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00
perry bfd526219d bzero->memset, bcopy->memcpy, bcmp->memcmp 1998-08-10 02:57:23 +00:00
mycroft d92a424ade const poisoning. 1998-07-26 21:35:28 +00:00
mycroft decd62c2bf const poisoning. 1998-07-26 15:13:14 +00:00
perry 3fe138c146 RCS Id Police. 1998-01-09 08:03:16 +00:00
lukem 2585608506 remove extraneous newline in remote finger output. (found by chuck cranor) 1997-11-24 22:03:48 +00:00
mrg 66f7b9fd72 fix compile warnings on the alpha. 1997-10-19 14:05:56 +00:00
mrg 987dbad8ba merge lite-2. WARNSify. clean up .Nm. 1997-10-19 08:13:23 +00:00
lukem 906b60f5e0 getopt returns -1 not EOF 1997-10-18 14:49:41 +00:00
mrg 2703290213 add -g flag: do not show non real name gecos info. 1997-09-09 02:41:06 +00:00
pk f6d87734a6 NULL => 0 (Arne Juul; PR#3629) 1997-05-17 19:40:47 +00:00
mycroft 5d918be419 Minor formatting changes to make the output less ugly. 1997-03-28 02:15:21 +00:00
tls 9d225a1783 RCS ID police 1997-01-09 20:18:21 +00:00
lukem 8bcf7e5435 don't need to explicitly NUL terminate strings written by snprintf() 1996-11-22 05:34:06 +00:00
lukem 3ccb8ba1c9 - add -h (show hostnames in short listing instead of office info), and
-o (the reverse of this, also the default)
- use vis(3) in vputc() instead of handcrufted function (from OpenBSD).
- move gecos expansion into expandusername() (a la sendmail's buildfname).
  A generic version of this last bit in libutil would be useful...
- cleanup the code, fix prototypes, etc.
1996-11-21 06:01:47 +00:00
jtc 6ce8742ab1 Update lseek() constants:
L_SET	-> SEEK_SET
Add off_t cast to offset arg.
1995-09-27 01:10:48 +00:00
jtc ca160a4e7b imported from 44lite2 1995-09-01 00:25:45 +00:00
jtc 1a62dfd970 Fix typo, noted by Masanobu Saitoh in PR #1272 1995-07-25 18:16:57 +00:00
mycroft 39a59b6bbe Fix oversight in previous. 1995-05-21 15:06:52 +00:00
mycroft 504e402f82 Use inet_aton(), not inet_addr(). 1995-05-21 15:03:24 +00:00
cgd fcb1f85786 pull in string.h or stdlib.h as necessary. 1994-12-24 16:33:46 +00:00
cgd 67f7468b24 bad cast 1994-04-01 03:32:38 +00:00
cgd 0563f20cc0 after -> before 1994-02-14 19:07:33 +00:00