jedgar
f5945e5ef9
Check strdup() return values
...
Reviewed by: kris
2001-01-20 00:26:32 +00:00
des
959cf8193d
.publickey -> .pubkey to match other finger daemons.
...
Suggested by: assar
2001-01-04 10:03:44 +00:00
des
8b067dbf44
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
33a704848b
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
655e7db87e
Prepare for mdoc(7)NG.
2000-12-19 16:00:12 +00:00
ru
4355e2ff1c
Document what Idle=* means in a short format display.
2000-12-12 13:37:34 +00:00
ru
0957874304
mdoc(7) police: use the new features of the Nm macro.
2000-11-20 19:21:22 +00:00
ru
996912be0c
The -o is the default for "short" display, not the -h.
2000-10-24 08:47:07 +00:00
ru
f27fe529b5
-Wall cleanup.
...
PR: 22187
2000-10-23 12:18:34 +00:00
ru
a599b4970f
Do not allow `finger -m /somefile' as well.
2000-10-05 15:56:13 +00:00
brian
31f91f1f69
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
3da774a231
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
ad32799cf8
Implement IPv6 support. Also restructure the way multi-homed hosts
...
are treated, regardless of protocol.
2000-09-22 01:06:40 +00:00
wollman
104e33407a
Delete a bogus reference to T/TCP -- the problem still exists on Standard
...
TCP.
2000-09-22 01:04:59 +00:00
brian
541d0f9c23
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
a74593f504
Finger.conf first appeared in 4.2 (now that it's been MFCd)
2000-08-25 22:22:04 +00:00
brian
b6661cc3a3
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
30ceb633d5
Add a missing comma.
2000-08-25 08:29:28 +00:00
brian
1b56fc4ad4
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
e8848c2c24
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
9244a9c90b
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
4f63f6aadf
Backout previous commit.
...
(Mental note: don't forget -rRELENG_4 next time.)
2000-07-12 09:50:20 +00:00
asmodai
3aa9bb1c8a
MFC: fix some output cosmetics so that the finger -s output is properly
...
lined up
2000-07-12 08:50:09 +00:00
asmodai
7773287308
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
34b4111fb4
Don't call warn() with no format string.
2000-07-10 08:49:28 +00:00
sheldonh
d39e57413d
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
e4b04a2b21
$Id$ -> $FreeBSD$
1999-08-28 01:08:13 +00:00
imp
3ebf1ea984
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
c5f1eb233d
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
251664b7db
Clean up some ambiguous nested if/elses.
1999-07-04 17:26:16 +00:00
obrien
682141063a
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
1d4d97b545
fix 8bit clean issue
...
PR: 7519
1998-08-07 16:21:09 +00:00
imp
895e96c0e6
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
ea0cc63bf6
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
2c826a1056
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
charnier
d7374e8382
Add rcsid, usage(). Silent -Wall. Use warn(3).
1997-07-02 06:34:51 +00:00
imp
cd84ece5fd
compare return value from getopt against -1 rather than EOF, per the final
...
posix standard on the topic.
1997-03-29 04:34:07 +00:00
ache
e441785daf
Skip \r character while printing Plan/etc. text files, it allows to
...
handle \r\n and \n\r files properly.
Previous variant put ^M for \r\n and ^M\n for \n\r
1997-03-17 17:07:39 +00:00
peter
cf1e7e3f26
Merge from Lite2
1997-03-11 13:43:33 +00:00
peter
8d2bf2fada
This commit was generated by cvs2svn to compensate for changes in r23690,
...
which included commits to RCS files with non-trunk default branches.
1997-03-11 13:08:12 +00:00
peter
91c996fd18
Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build.
1997-03-11 13:08:12 +00:00
ache
3664245ceb
Adjust line to not overflow 80 cols (result of recent utmp changes)
1996-12-05 17:33:46 +00:00
olah
d2ec223edf
Allow the user to disable the use of T/TCP by setting the -T option.
...
This option becomes useless when all TCP stacks are fixed out there.
1996-03-15 16:41:49 +00:00
ache
7de3a98573
Print 8bit chars from the net if current locale allows them
1996-03-10 23:33:48 +00:00
wollman
3fb9f35b87
Implement client-side transaction TCP. This has little effect
...
if the server doesn't support it. (This is intended mostly as
an example.)
1995-12-17 21:04:36 +00:00
ache
20993030f0
Change locale to LC_ALL, there is no bitmask
1995-10-26 11:03:08 +00:00
ache
e66c907403
Add setlocale LC_TIME|LC_CTYPE
1995-10-24 04:18:45 +00:00
peter
febdb5bbd0
Reverse out some of the previous commit I did, which shortened the
...
finger output from 80 to 79 characters to stop the syscons
every-second-line-is-blank problem.
Also, redo the TTY column mod so that it steals one of the (usually) two
blank spaces from the before the tty column rather than from the office
phone number.
This means the office phone field width in the short finger is back to 15
characters instead of 13.
1995-10-10 02:31:09 +00:00
peter
bbe961035e
Increase the tty column width from 2 to 3 characters.
...
This gives us more room to breath with tty names, especially with drivers
that support large numbers of ports.. eg: specialix and digiboard.
This does not actually change the current tty names, it just allows room
for reporting more characters if the drivers use them.
1995-09-04 01:22:54 +00:00
ache
4ea220b95f
Allow national printable chars in .plan
1995-08-08 00:45:21 +00:00