History log of /freebsd-10-stable/usr.bin/finger/net.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 256281 10-Oct-2013 gjb

Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

# 223374 21-Jun-2011 delphij

Staticify cleanup() which is not referenced in other places.

MFC after: 2 weeks


# 216370 11-Dec-2010 joel

Remove the advertising clause from UCB copyrighted files in usr.bin. This
is in accordance with the information provided at
ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change

Also add $FreeBSD$ to a few files to keep svn happy.

Discussed with: imp, rwatson


# 202191 13-Jan-2010 ed

Migrate finger(1) towards utmpx.

It was already ported to use libulog, which makes it simpler now. Be
sure to catch the error returned by setutxdb(). Otherwise it may perform
a lookup on the utx.active database.


# 201140 28-Dec-2009 ed

Migrate finger(1) away from <utmp.h>.

Unfortunately it also uses lastlog, which means we must resort to local
extensions of the utmpx-interface. Because the user name and TTY name
are now nul-terminated, there is no need to copy around strings as
often.


# 200462 13-Dec-2009 delphij

Revert most part of 200420 as requested, as more review and polish is
needed.


# 200420 11-Dec-2009 delphij

Remove unneeded header includes from usr.bin/ except contributed code.

Tested with: make universe


# 168632 11-Apr-2007 des

Remove T/TCP support, and the -T option which was needed to disable it.

MFC after: 3 weeks


# 129302 16-May-2004 stefanf

Remove spurious semicolons. Outside of functions they are actually errors but
GCC doesn't warn about them without -pedantic.

Approved by: das (mentor)
PR: 56649
Reviewed by: md5


# 107528 02-Dec-2002 roam

Make a CR/LF sequence measure up to its name: the order of the CR and LF
characters was reversed, resulting in some network appliances, including
at least some NAS devices from Ascend, not recognizing our finger(1)
request.

PR: 45914
Submitted by: J R Matthews <jrm@delta-e.com.au>
Approved by: re (rwatson)
MFC after: 2 weeks


# 102944 04-Sep-2002 dwmalone

ANSIify function definitions.
Add some constness to avoid some warnings.
Remove use register keyword.
Deal with missing/unneeded extern/prototypes.
Some minor type changes/casts to avoid warnings.

Reviewed by: md5


# 100521 22-Jul-2002 ume

add -4 and -6 option to be able to specify an address family.

Requested by: matusita
MFC after: 1 week


# 87628 10-Dec-2001 dwmalone

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.


# 87229 02-Dec-2001 markm

WARNS=2 fix, remove 'register' and use __FBSDID().


# 78718 24-Jun-2001 dd

Include missing header files which define functions for which gcc has
builtins (e.g., exit, strcmp).


# 72109 06-Feb-2001 charnier

Spelling
Remove unused #includes


# 67467 23-Oct-2000 ru

-Wall cleanup.

PR: 22187


# 66315 23-Sep-2000 wollman

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)


# 66199 21-Sep-2000 wollman

Implement IPv6 support. Also restructure the way multi-homed hosts
are treated, regardless of protocol.


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 46662 07-May-1999 obrien

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)


# 36792 09-Jun-1998 imp

Don't assume that hp->h_lenght == 4. Be conservative in its use.
Submitted by: J. Assange a long time ago.


# 27835 01-Aug-1997 wollman

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.


# 27169 02-Jul-1997 charnier

Add rcsid, usage(). Silent -Wall. Use warn(3).


# 23693 11-Mar-1997 peter

Merge from Lite2


# 14631 15-Mar-1996 olah

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.


# 14472 10-Mar-1996 ache

Print 8bit chars from the net if current locale allows them


# 12909 17-Dec-1995 wollman

Implement client-side transaction TCP. This has little effect
if the server doesn't support it. (This is intended mostly as
an example.)


# 8874 30-May-1995 rgrimes

Remove trailing whitespace.


# 4990 05-Dec-1994 pst

Remove extra newline introduced in Net/2


# 1591 27-May-1994 rgrimes

This commit was generated by cvs2svn to compensate for changes in r1590,
which included commits to RCS files with non-trunk default branches.


# 1590 27-May-1994 rgrimes

BSD 4.4 Lite Usr.bin Sources