aboutsummaryrefslogtreecommitdiff
path: root/libexec/fingerd/fingerd.c
Commit message (Collapse)AuthorAgeFilesLines
* Purge more stray embedded $FreeBSD$ stringsJohn Baldwin2023-10-241-2/+0
| | | | | | | | | These do not use __FBSDID but instead use bare char arrays. Reviewed by: imp, emaste Differential Revision: https://reviews.freebsd.org/D41957 (cherry picked from commit eba230afba4932f02a1ca44efc797cf7499a5cb0)
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-1/+3
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Add blacklist support to fingerdKurt Lidl2016-06-031-0/+12
| | | | | | | | | | | Reviewed by: rpaulo Approved by: rpaulo Relnotes: YES Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5916 Notes: svn path=/head/; revision=301243
* Remove the 3rd clause ("advertising clause") of the BSD license asChristian Brueffer2014-02-171-5/+1
| | | | | | | | | | permitted by the University of Berkeley on July 22, 1999. Reviewed by: imp MFC after: 1 week Notes: svn path=/head/; revision=262136
* Forgot to initialize the debug variable.Dag-Erling Smørgrav2010-04-011-1/+1
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=206040
* Add a debugging option (-d)Dag-Erling Smørgrav2010-04-011-11/+25
| | | | | | | | | Add a -k option which fingerd(8) passes through to finger(1). MFC after: 2 weeks Notes: svn path=/head/; revision=206038
* Mark functions as __dead2 in order to help the LLVM static checkerColin Percival2008-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". Notes: svn path=/head/; revision=181269
* Fix most cases where the address of an int is passed to a function expecting aStefan Farfeleder2005-02-141-1/+2
| | | | | | | socklen_t * argument. Notes: svn path=/head/; revision=141918
* Make fingerd(8) WARNS2 clean.Pawel Jakub Dawidek2004-03-291-1/+1
| | | | Notes: svn path=/head/; revision=127560
* Mark the logerr() function __printflike().Kris Kennaway2002-10-131-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=105040
* When the -p flag is specified, set an environment variable to the nameGarrett Wollman2002-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.) Notes: svn path=/head/; revision=98897
* Add used include of <string.h>.Garrett Wollman2002-05-301-1/+1
| | | | | | | Delete unused include of <strings.h>. Notes: svn path=/head/; revision=97635
* Revert revision 1.11. FreeBSD/alpha has suppport for T/TCP.Mike Barcroft2002-02-241-2/+0
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=91201
* o Eliminate __PWarner Losh2002-02-031-21/+5
| | | | | | | | | o Use new-style function definitions o remove some !__STDC__ code o eliminate register Notes: svn path=/head/; revision=90148
* Terminate the array of execv(3) pointers by a NULL pointer in the edge case.Ruslan Ermilov2001-10-041-1/+3
| | | | | | | | PR: bin/30913 Submitted by: Dimitri Lommers <dimitri@hinttech.com> Notes: svn path=/head/; revision=84454
* Check malloc() and strdup() return valuesChris D. Faulhaber2001-01-201-2/+6
| | | | | | | Reviewed by: kris Notes: svn path=/head/; revision=71274
* Support logging for IPv6 remote host.Yoshinobu Inoue2000-02-181-4/+5
| | | | | | | | | | Approved by: jkh PR: bin/16789 Submitted by: Ben Smithurst <ben@scientia.demon.co.uk Notes: svn path=/head/; revision=57313
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Identify illegal switches, don't print them as '?' in the error..Peter Wemm1999-05-181-2/+2
| | | | Notes: svn path=/head/; revision=47291
* Fix the size of rhost, don't forget to NUL terminateBrian Somers1999-04-071-2/+3
| | | | | | | | it and use brackets for sizeof. Requested by: bde Notes: svn path=/head/; revision=45418
* Use realhostname() rather than various combinations ofBrian Somers1999-04-061-9/+5
| | | | | | | | | gethostbyaddr() & gethostbyname(). Remove brokeness in ftpd for hosts of MAXHOSTNAMELEN length. Notes: svn path=/head/; revision=45393
* NetBSD kernels don't support TCP_NOPUSH, so on alpha don't try settingJohn Birrell1998-05-151-1/+3
| | | | | | | | this socket option. This is temporary code while the alpha still uses NetBSD socket code in the kernel. Notes: svn path=/head/; revision=36045
* Add const to copyright string. Put sccsid under #if 0/#endif control.Philippe Charnier1997-11-201-4/+4
| | | | Notes: svn path=/head/; revision=31308
* Log the request from the remote side, in addition to it having happened.Sean Eric Fagan1997-11-141-13/+27
| | | | | | | Reviewed by: julian Notes: svn path=/head/; revision=31168
* compare return value from getopt against -1 rather than EOF, per the finalWarner Losh1997-03-281-2/+2
| | | | | | | posix standard on the topic. Notes: svn path=/head/; revision=24349
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22989
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-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. Notes: svn path=/head/; revision=21673
* Implement server-side transaction TCP. (Has no effect on non-TTCP clients.)Garrett Wollman1995-12-171-9/+25
| | | | Notes: svn path=/head/; revision=12908
* Fix the bug which allowed people to avoid the "-s" (secure) bug.Peter Wemm1995-12-101-2/+3
| | | | | | | | Now, "finger" is invoked with "--" before the first network supplied argument, so the "--" and "-l" hacks will be stopped. Notes: svn path=/head/; revision=12728
* Remove trailing whitespace.Rodney W. Grimes1995-05-301-1/+1
| | | | Notes: svn path=/head/; revision=8870
* fixed spelling error.Poul-Henning Kamp1995-02-041-1/+1
| | | | Notes: svn path=/head/; revision=6180
* BSD 4.4 Lite Libexec SourcesRodney W. Grimes1994-05-271-0/+190
Notes: svn path=/vendor/CSRG/dist/; revision=1592