imp
74d826c7a6
remove __P
2002-03-22 01:22:50 +00:00
bde
6449432456
Unremoved used includes. <sys/time.h> is needed if <sys/stat.h> isn't
...
polluted, and <sys/types.h> is strictly a prerequisite for <sys/stat.h>
untiil we drop support for pre-2001 versions of POSIX.
2002-02-25 05:09:12 +00:00
markm
ae2558974f
Remove leaf node WARNS?=2 (that mainly I added). This should
...
help the GCC3 transition and CURRENT in general.
2002-02-08 22:31:43 +00:00
peter
2a6db49cc9
GRR. Unbreak WARNS=2.
...
cc1: warnings being treated as errors
usr.bin/finger/lprint.c: In function `lprint':
usr.bin/finger/lprint.c:191: warning: precision is not type int (arg 2)
*** Error code 1
Pointy hat to: markm
2002-02-08 07:52:51 +00:00
dwmalone
d9613ea383
Style improvements recommended by Bruce as a follow up to some
...
of the recent WARNS commits. The idea is:
1) FreeBSD id tags should follow vendor tags.
2) Vendor tags should not be compiled (though copyrights probably should).
3) There should be no blank line between including cdefs and __FBSDIF.
2001-12-10 21:13:08 +00:00
markm
f8ba6799fd
WARNS=2 fix, remove 'register' and use __FBSDID().
2001-12-02 20:13:42 +00:00
yar
cf93cda491
Replace the condemned access(2) by stat(2),
...
as per the discussion in -audit.
2001-08-08 21:22:48 +00:00
yar
d4e647fdae
Don't use ".nofinger" as a string constant from within the code
...
since there is the ``pathnames.h'' file; use _PATH_NOFINGER instead.
2001-07-30 16:50:47 +00:00
ru
36f138439b
mdoc(7) police: removed HISTORY info from the .Os call.
2001-07-10 14:16:33 +00:00
ru
05e503d80a
mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).
2001-07-06 16:46:48 +00:00
dd
dc0185a459
Include missing header files which define functions for which gcc has
...
builtins (e.g., exit, strcmp).
2001-06-24 19:50:42 +00:00
ru
89596e4538
MAN[1-9] -> MAN.
2001-03-27 10:52:19 +00:00
ache
ba9451ee82
Don't attempt to parse %c
2001-03-21 18:43:49 +00:00
imp
83cfdca42c
MAXPATHLEN is enough.
...
Also, snprinf is guaranteed by the new ansi standard to NUL terminate the
string, so we don't need to do that ourselves.
2001-03-01 05:52:38 +00:00
charnier
3699f60e15
Spelling
...
Remove unused #includes
2001-02-06 20:13:48 +00:00
jedgar
73ff8fb47f
Check strdup() return values
...
Reviewed by: kris
2001-01-20 00:26:32 +00:00
des
a2912f74e1
.publickey -> .pubkey to match other finger daemons.
...
Suggested by: assar
2001-01-04 10:03:44 +00:00
des
7880bf45e4
Add support for a .publickey file.
...
Submitted by: Svein Skogen <tds@nsn.no>
Reviewed by: brian, ru
2000-12-29 11:39:25 +00:00
brian
b92a08961b
If the utmp login time is greater than the tty atime, use it to calculate
...
the idle time instead of the atime.
This makes entries for people that have logged in but done nothing
else show up correctly.
Reviewed by: markk@knigma.org
2000-12-21 01:30:47 +00:00
ru
e6cfc0711d
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
ru
4f93cb1f4a
Document what Idle=* means in a short format display.
2000-12-12 13:37:34 +00:00
ru
0d1334ca0c
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
ru
79719d2ea5
The -o is the default for "short" display, not the -h.
2000-10-24 08:47:07 +00:00
ru
7885ad0000
-Wall cleanup.
...
PR: 22187
2000-10-23 12:18:34 +00:00
ru
8f500e6616
Do not allow `finger -m /somefile' as well.
2000-10-05 15:56:13 +00:00
brian
387093d29e
Don't allow finger /somefile, only allow filname expansions from
...
inside /etc/finger.conf
PR: 21704
2000-10-02 22:27:34 +00:00
wollman
314abdc184
Don't assume ai0->ai_canonname will always be filled in. Print the
...
user-supplied host name if we can't get a canonical name.
Obtained from: contrib/tcp_wrappers/socket.c rev. 1.4 (in spirit)
2000-09-24 01:54:49 +00:00
wollman
9d63cb2085
Implement IPv6 support. Also restructure the way multi-homed hosts
...
are treated, regardless of protocol.
2000-09-22 01:06:40 +00:00
wollman
31737e2a38
Delete a bogus reference to T/TCP -- the problem still exists on Standard
...
TCP.
2000-09-22 01:04:59 +00:00
brian
573a7b70f3
Don't drop out when we've processed argc - 1 names.... arguments
...
may expand to more than one user.
PR: 21228
2000-09-12 21:58:31 +00:00
brian
d9362d8717
Finger.conf first appeared in 4.2 (now that it's been MFCd)
2000-08-25 22:22:04 +00:00
brian
7a9c69eba5
Fix the -m option - broken by the last commit.
...
Submitted by: Mark Knight <markk@knigma.org>
2000-08-25 18:28:43 +00:00
sheldonh
a183fa8458
Add a missing comma.
2000-08-25 08:29:28 +00:00
brian
4dcf00026a
Allow finger.conf to contain aliases for files that will be displayed
...
when fingered.
Submitted by: Mark Knight <markk@knigma.org>
2000-08-25 01:01:07 +00:00
sheldonh
baa789ba03
Remove extraneous arguments to the Os (operating system) and Nm
...
(name) macros.
Do not terminate the cross-reference list in the SEE ALSO section
with a period.
2000-08-17 16:57:31 +00:00
brian
395771585c
Allow a /etc/finger.conf file that contains finger aliases
...
This allows people who's email address differs from their account name
to be fingerable.
Submitted by: Mark Knight <markk@knigma.org>
2000-08-17 10:59:17 +00:00
asmodai
fba3508a15
Backout previous commit.
...
(Mental note: don't forget -rRELENG_4 next time.)
2000-07-12 09:50:20 +00:00
asmodai
56694a5546
MFC: fix some output cosmetics so that the finger -s output is properly
...
lined up
2000-07-12 08:50:09 +00:00
asmodai
0c292e5f74
Fix finger -s output on an user who never logged in.
...
This is purely a cosmetic patch.
PR: 9809
Submitted by: se
Nagged about: nrahlstr
2000-07-11 08:37:56 +00:00
kris
90a7a5a6ae
Don't call warn() with no format string.
2000-07-10 08:49:28 +00:00
sheldonh
49c4458c80
Remove single-space hard sentence breaks. These degrade the quality
...
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-01 12:20:22 +00:00
peter
3b842d34e8
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
imp
b78c77d7be
Use the final version of the patch for the overflow, not the next to
...
final.
Noticed by: eivind
1999-08-22 17:24:25 +00:00
imp
a978a32098
Fix possible buffer overflow with finger and fingerd.
...
Submitted by: Lukasz Luzar <lluzar@noname.kki.krakow.pl> and
Eivind Eklund <eivind@yes.no>
This patch is actually a combination of those two patches.
1999-08-21 18:25:38 +00:00
billf
4822432874
Clean up some ambiguous nested if/elses.
1999-07-04 17:26:16 +00:00
obrien
228630557e
Impliment elements of TCP Wrappers's `safe_finger'.
...
* if run by root (or root process) drop privs
* ensure output size is not infinate (net finger only)
* ensure output lines are not infinate in length (net finger only)
* do not allow finger client to run longer than 3 minutes (net finger only)
1999-05-08 00:46:06 +00:00
ache
2d5e5a91b3
fix 8bit clean issue
...
PR: 7519
1998-08-07 16:21:09 +00:00
imp
8c96be00ef
Don't assume that hp->h_lenght == 4. Be conservative in its use.
...
Submitted by: J. Assange a long time ago.
1998-06-09 04:31:02 +00:00
wollman
b3575f9ae8
Document the bogus standard requirement of delaying the close.
...
Also include a reference to the FINGER RFC.
1997-08-01 20:26:47 +00:00
wollman
9233cdeb45
So somebody actually found language in the FINGER RFC which requires
...
implementations to leave the client side open until the server closes.
While this is totally idiotic, it seems as if some servers actually require
it (e.g., the one at mit.mit.edu). So, we bow to the weight of the bogus
standard and disable the initial close. Hopefully now fetch(1) can serve
the role of T/TCP demonstration application.
1997-08-01 20:10:44 +00:00