mrg
70daf20d05
no need to cast setlocale()'s return value.
2006-05-11 01:20:33 +00:00
christos
e8877ca717
Coverity CID 1780, 1779: Fix memory leak.
2006-04-28 19:53:56 +00:00
rumble
0fe2cb9e42
Ensure that malloc does not return NULL before copying the buffer.
2006-03-17 04:53:55 +00:00
elad
9e505fa94b
Fix two off-by-ones found by Coverity.
2006-03-17 01:55:31 +00:00
perry
ee5c979c9f
de-__P, ANSIfy prototypes, and kill register
2006-01-04 01:17:54 +00:00
lukem
7157011597
Only compile in IPv6 support if ${USE_INET6} != "no"
...
MKINET6 is for providing IPv6 infrastructure.
USE_INET6 is for compiling IPv6 support into the programs (needs MKINET6).
2005-01-10 02:58:58 +00:00
christos
81726ab7e3
Print the full pty name; reported by atatat
2004-11-16 04:52:46 +00:00
christos
692346d6f0
PR/28264: Miles Nordin: finger does not consult utmp if a username is specified
2004-11-12 21:48:58 +00:00
dsl
43371ff1ac
Add (unsigned char) cast to ctype functions
2004-10-30 17:17:35 +00:00
kleink
c6aa3261e7
Remove duplicate header inclusions; from Jeff Ito in PR bin/25797.
2004-06-03 18:33:57 +00:00
kleink
cee29a73ab
Remove a trailing blank line; from Jeff Ito in PR bin/25797.
2004-06-03 18:32:18 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
salo
0f5a0c156d
netbsd.org->NetBSD.org
2003-07-26 20:34:11 +00:00
itojun
032ed69f9a
strlcpy
2003-07-12 13:23:55 +00:00
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