aboutsummaryrefslogtreecommitdiff
path: root/libexec/ftpd/logwtmp.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-231-2/+0
| | | | | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/ Similar commit in main: (cherry picked from commit 1d386b48a555)
* 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
* 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
* Set ut_line to "ftpd" for ftpd.Ed Schouten2010-02-091-0/+1
| | | | | | | | | | | This makes it a little easier to figure out which application was responsible for this log entry. Ideally we should add an ut_process or something similar. Suggested by: Vincent Poy <vincepoy gmail com> Notes: svn path=/head/; revision=203698
* Really disable wtmp logging when chrooting.Ed Schouten2010-01-181-1/+1
| | | | | | | | | | | Also perform a small cleanup to ftpd_logwtmp(). Just use a NULL parameter for the username to indicate a logout, instead of an empty string. Reported by: Alexey Shuvaev <shuvaev physik uni-wuerzburg de> Notes: svn path=/head/; revision=202604
* Port ftpd to utmpx.Ed Schouten2010-01-131-34/+22
| | | | | | | | | | | Unfortunately I have to partially wreck its functionality, though. ftpd used to keep a file descriptor to the wtmp, which allowed it to work from within a chroot. The current utmpx implementation doesn't offer a way to do this. Maybe we can address this in the future, if it turns out to be a real issue. Notes: svn path=/head/; revision=202209
* Use __FBSDID.Yaroslav Tykhiy2004-11-181-2/+3
| | | | Notes: svn path=/head/; revision=137859
* Oops. Some ut_time stuff slipped through the cracks. These turned outPeter Wemm2002-11-171-1/+2
| | | | | | | to be non-fatal due to stack alignment roundups. Notes: svn path=/head/; revision=107030
* Remove the outdated casts to "char *" from the setsockopt(2),Yaroslav Tykhiy2002-07-241-1/+1
| | | | | | | | | | | | write(2), and getipnodebyaddr(3) calls. Now all the above functions accept "void *" in that arguments and have prototypes. Thus, the casts are useless under the normal circumstances (and would be harmful if the functions had no prototypes.) MFC after: 2 weeks Notes: svn path=/head/; revision=100612
* Log wtmp according to an address family properly.Hajimu UMEMOTO2002-01-281-21/+9
| | | | | | | | | Reported by: matusita Reviewed by: matusita MFC after: 1 week Notes: svn path=/head/; revision=89920
* another tcp apps IPv6 updates.(should be make world safe)Yoshinobu Inoue2000-01-271-7/+16
| | | | | | | | | | ftp, telnet, ftpd, faithd also telnet related sync with crypto, secure, kerberosIV Obtained from: KAME project Notes: svn path=/head/; revision=56668
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50476
* Cosmetics in man page. Exit(-1) -> exit(1).Philippe Charnier1997-11-211-2/+4
| | | | Notes: svn path=/head/; revision=31329
* Hopefully better fix for logwtmp(): rename to a privateThomas Gellekum1997-09-051-2/+2
| | | | | | | version ftpd_logwtmp(). Notes: svn path=/head/; revision=29140
* 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
* add forgotten $Id$Wolfram Schneider1996-09-221-0/+1
| | | | Notes: svn path=/head/; revision=18471
* If hostname > UT_HOSTSIZE, use its numerical address instead to keepAndrey A. Chernov1996-06-171-1/+16
| | | | | | | valid utmp and wtmp entries Notes: svn path=/head/; revision=16433
* BSD 4.4 Lite Libexec SourcesRodney W. Grimes1994-05-271-0/+75
Notes: svn path=/vendor/CSRG/dist/; revision=1592