summaryrefslogtreecommitdiffstats
path: root/libexec/fingerd/fingerd.c
Commit message (Collapse)AuthorAgeFilesLines
* Add blacklist support to fingerdlidl2016-06-031-0/+12
| | | | | | | | Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5916
* Remove the 3rd clause ("advertising clause") of the BSD license asbrueffer2014-02-171-5/+1
| | | | | | | permitted by the University of Berkeley on July 22, 1999. Reviewed by: imp MFC after: 1 week
* Forgot to initialize the debug variable.des2010-04-011-1/+1
| | | | MFC after: 2 weeks
* Add a debugging option (-d)des2010-04-011-11/+25
| | | | | | Add a -k option which fingerd(8) passes through to finger(1). MFC after: 2 weeks
* Mark functions as __dead2 in order to help the LLVM static checkercperciva2008-08-041-1/+1
| | | | | | | understand which code paths aren't possible. This commit eliminates 117 false positive bug reports of the form "allocate memory; error out if pointer is NULL; use pointer".
* Fix most cases where the address of an int is passed to a function expecting astefanf2005-02-141-1/+2
| | | | socklen_t * argument.
* Make fingerd(8) WARNS2 clean.pjd2004-03-291-1/+1
|
* Mark the logerr() function __printflike().kris2002-10-131-1/+1
| | | | MFC after: 3 days
* When the -p flag is specified, set an environment variable to the namewollman2002-06-261-12/+23
| | | | | | | | | | | | | | | of the remote host (or rather, the name as mangled by realhostname_sa()) so that the process can use it to behave differently depending on the origin on the request. We use this to implement rudimentary visibility control on our user information. Make sure that the child process's standard error goes through the same NVT-ASCII filter as is applied to the standard output. Don't attempt to call logerr() from the child since stdio is not safe in a vforked process. Just write a message to fd 2 instead. (Ideally, the parent would open two pipes, and siphon off our stderr to some place less public, but I have not attempted to do so in this implementation.)
* Add used include of <string.h>.wollman2002-05-301-1/+1
| | | | Delete unused include of <strings.h>.
* Revert revision 1.11. FreeBSD/alpha has suppport for T/TCP.mike2002-02-241-2/+0
| | | | MFC after: 1 week
* o Eliminate __Pimp2002-02-031-21/+5
| | | | | | o Use new-style function definitions o remove some !__STDC__ code o eliminate register
* Terminate the array of execv(3) pointers by a NULL pointer in the edge case.ru2001-10-041-1/+3
| | | | | PR: bin/30913 Submitted by: Dimitri Lommers <dimitri@hinttech.com>
* Check malloc() and strdup() return valuesjedgar2001-01-201-2/+6
| | | | Reviewed by: kris
* Support logging for IPv6 remote host.shin2000-02-181-4/+5
| | | | | | | Approved by: jkh PR: bin/16789 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Identify illegal switches, don't print them as '?' in the error..peter1999-05-181-2/+2
|
* Fix the size of rhost, don't forget to NUL terminatebrian1999-04-071-2/+3
| | | | | it and use brackets for sizeof. Requested by: bde
* Use realhostname() rather than various combinations ofbrian1999-04-061-9/+5
| | | | | | gethostbyaddr() & gethostbyname(). Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length.
* NetBSD kernels don't support TCP_NOPUSH, so on alpha don't try settingjb1998-05-151-1/+3
| | | | | this socket option. This is temporary code while the alpha still uses NetBSD socket code in the kernel.
* Add const to copyright string. Put sccsid under #if 0/#endif control.charnier1997-11-201-4/+4
|
* Log the request from the remote side, in addition to it having happened.sef1997-11-141-13/+27
| | | | Reviewed by: julian
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-281-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Implement server-side transaction TCP. (Has no effect on non-TTCP clients.)wollman1995-12-171-9/+25
|
* Fix the bug which allowed people to avoid the "-s" (secure) bug.peter1995-12-101-2/+3
| | | | | Now, "finger" is invoked with "--" before the first network supplied argument, so the "--" and "-l" hacks will be stopped.
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* fixed spelling error.phk1995-02-041-1/+1
|
* BSD 4.4 Lite Libexec Sourcesrgrimes1994-05-271-0/+190
OpenPOWER on IntegriCloud