Commit Graph

135 Commits

Author SHA1 Message Date
Peter Wemm
c3aac50f28 $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
Warner Losh
b59bb23b3d 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
Warner Losh
e0d8eea175 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
Bill Fumerola
9ef5c48bef Clean up some ambiguous nested if/elses. 1999-07-04 17:26:16 +00:00
David E. O'Brien
dd5288f3a5 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
Andrey A. Chernov
b4689cd667 fix 8bit clean issue
PR: 7519
1998-08-07 16:21:09 +00:00
Warner Losh
a716ad6693 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
Garrett Wollman
4c33feed58 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
Garrett Wollman
a32cbefa87 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
Philippe Charnier
b14d8277cc Add rcsid, usage(). Silent -Wall. Use warn(3). 1997-07-02 06:34:51 +00:00
Warner Losh
1c8af87873 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
Andrey A. Chernov
3429a30406 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 Wemm
df3f5d9dd5 Merge from Lite2 1997-03-11 13:43:33 +00:00
Peter Wemm
18dac96b7b 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 Wemm
0da30e9aa7 Import some parts of CSRG 4.4BSD-Lite2 usr.bin sources to fix tree build. 1997-03-11 13:08:12 +00:00
Andrey A. Chernov
5b3675170f Adjust line to not overflow 80 cols (result of recent utmp changes) 1996-12-05 17:33:46 +00:00
Andras Olah
03801815df 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
Andrey A. Chernov
a0a4788922 Print 8bit chars from the net if current locale allows them 1996-03-10 23:33:48 +00:00
Garrett Wollman
1e474c62ca 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
Andrey A. Chernov
d1b2ad1a54 Change locale to LC_ALL, there is no bitmask 1995-10-26 11:03:08 +00:00
Andrey A. Chernov
dc675fc2e7 Add setlocale LC_TIME|LC_CTYPE 1995-10-24 04:18:45 +00:00
Peter Wemm
39c17c43c5 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 Wemm
6926792029 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
Andrey A. Chernov
d40cee33a8 Allow national printable chars in .plan 1995-08-08 00:45:21 +00:00
Andrey A. Chernov
7a88bad16a Replace asctime/ctime by strftime %c to use national representation 1995-08-08 00:38:33 +00:00
Garrett Wollman
656dcd4316 Delete bogus referneces to timezone code internal header file `tzfile.h',
which is no longer bogusly installed in /usr/include.
1995-08-07 19:17:46 +00:00
Andrey A. Chernov
c2ac9540cd Fix finger not check all users ~/.nofinger, only for actually
matched. Close PR 539
Submitted by: tom@haven.uniserve.com
1995-06-21 23:54:43 +00:00
Rodney W. Grimes
7799f52a32 Remove trailing whitespace. 1995-05-30 06:41:30 +00:00
Joerg Wunsch
b2b31a1c92 Make finger(1) accept "cua" to be also a tty, and use the suffix instead
of the very meaningful string "cu" to describe the tty.
1995-03-25 18:15:40 +00:00
Jordan K. Hubbard
8829c73eb6 Add Sean Eric Fagan's support for a ~/.nofinger file for user who prefer
their privacy.
Submitted by:	sef
1995-01-04 01:02:43 +00:00
Paul Traina
a5af661e23 Remove extra newline introduced in 44lite (oops) 1994-12-05 10:01:39 +00:00
Paul Traina
2e8df940be Remove extra newline introduced in Net/2 1994-12-05 10:01:23 +00:00
Paul Traina
59be608802 Add code to pull options out of FINGER environment variable if present.
Yes, has same stupid bug as more(1), options must be specified as one
argument.

Submitted by:	pst
1994-09-08 19:27:06 +00:00
Paul Traina
86641d8f9c Install Luke's enhancements for finger.
By default, behave like the old ugly 4.4bsd finger and print office
information instead of remote login information.

It's an easy one line fix to make it behave like most other vendor's
fingers if we decide to change the default.

Reviewed by:	pst
1994-09-07 07:22:41 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00