History log of /freebsd-9.3-release/usr.bin/finger/finger.c
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# 267654 19-Jun-2014 gjb

Copy stable/9 to releng/9.3 as part of the 9.3-RELEASE cycle.

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

# 225736 22-Sep-2011 kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by: re (implicit)


# 220971 23-Apr-2011 simon

Check return code of setuid() and setgid() in finger.

While they will not fail in normal circumstances, better safe than
sorry.

MFC after: 1 week


# 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.


# 200793 21-Dec-2009 delphij

Plug a memory leak.

PR: bin/141836
Submitted by: Henning Petersen <henning.petersen at t-online.de>
MFC after: 2 weeks


# 168635 11-Apr-2007 des

Remove -T from getopt() spec and usage string.

Submitted by: ru@


# 168632 11-Apr-2007 des

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

MFC after: 3 weeks


# 150316 19-Sep-2005 dds

Setting .nofinger will not hide you from root.


# 146466 21-May-2005 ru

Sync program's usage() with manpage's SYNOPSIS.


# 126960 14-Mar-2004 bde

Fixed a misspelling of 0 as NULL.


# 117010 28-Jun-2003 jmallett

Add code to keep going if you're really intent on fingering someone, but
can't use utmp(5).


# 106250 31-Oct-2002 sobomax

Back out previous commit - it was not well thought out.

Clue beaten in by: ume
Pointy hat to: sobomax


# 106245 31-Oct-2002 sobomax

Fix POLA breakage in 1.29: IPv4 should be default. This makes `-4' option
a nop, but we'll probably want to keep it for compatibility with other
KAME-based systems.

Complained about by: Andrey Lakhno <land@dnepr.net>
MFC after: 3 days


# 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


# 99249 02-Jul-2002 mini

Add -g option, which restricts printing of the gecos fields to just the user's
real name.

PR: bin/39462
Submitted by: Mike Makonnen <makonnen@pacbell.net>
Obtained from: NetBSD
MFC after: 1 week


# 92920 21-Mar-2002 imp

remove __P


# 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().


# 74586 21-Mar-2001 ache

Don't attempt to parse %c


# 72109 06-Feb-2001 charnier

Spelling
Remove unused #includes


# 67467 23-Oct-2000 ru

-Wall cleanup.

PR: 22187


# 66675 05-Oct-2000 ru

Do not allow `finger -m /somefile' as well.


# 66563 02-Oct-2000 brian

Don't allow finger /somefile, only allow filname expansions from
inside /etc/finger.conf

PR: 21704


# 65787 12-Sep-2000 brian

Don't drop out when we've processed argc - 1 names.... arguments
may expand to more than one user.

PR: 21228


# 65082 25-Aug-2000 brian

Fix the -m option - broken by the last commit.

Submitted by: Mark Knight <markk@knigma.org>


# 65064 24-Aug-2000 brian

Allow finger.conf to contain aliases for files that will be displayed
when fingered.

Submitted by: Mark Knight <markk@knigma.org>


# 64775 17-Aug-2000 brian

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>


# 50477 27-Aug-1999 peter

$Id$ -> $FreeBSD$


# 48566 04-Jul-1999 billf

Clean up some ambiguous nested if/elses.


# 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)


# 27169 02-Jul-1997 charnier

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


# 24360 29-Mar-1997 imp

compare return value from getopt against -1 rather than EOF, per the final
posix standard on the topic.


# 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.


# 11811 26-Oct-1995 ache

Change locale to LC_ALL, there is no bitmask


# 11759 24-Oct-1995 ache

Add setlocale LC_TIME|LC_CTYPE


# 9280 21-Jun-1995 ache

Fix finger not check all users ~/.nofinger, only for actually
matched. Close PR 539
Submitted by: tom@haven.uniserve.com


# 5369 03-Jan-1995 jkh

Add Sean Eric Fagan's support for a ~/.nofinger file for user who prefer
their privacy.
Submitted by: sef


# 4991 05-Dec-1994 pst

Remove extra newline introduced in 44lite (oops)


# 2589 08-Sep-1994 pst

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


# 2537 07-Sep-1994 pst

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


# 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