The NetBSD Project

CVS log for src/libexec/ftpd/version.h

[BACK] Up to [cvs.NetBSD.org] / src / libexec / ftpd

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.75.22.2 / (download) - annotate - [select for diffs], Tue Oct 3 10:14:13 2023 UTC (4 months, 4 weeks ago) by martin
Branch: netbsd-8
Changes since 1.75.22.1: +2 -2 lines
Diff to previous 1.75.22.1 (colored) to branchpoint 1.75 (colored) next main 1.76 (colored)

Pull up following revision(s) (requested by lukem in ticket #1907):

	libexec/ftpd/version.h: revision 1.80

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR

Revision 1.75.22.1 / (download) - annotate - [select for diffs], Tue Oct 3 10:07:45 2023 UTC (4 months, 4 weeks ago) by martin
Branch: netbsd-8
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

Pull up following revision(s) (requested by lukem in ticket #1903):

	libexec/ftpd/ftpd.c: revision 1.207
	libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.

Consistent logging and fatal exit if uid/gid switching fails.

Log correct errno if dataconn() fails.

Revision 1.76.2.2 / (download) - annotate - [select for diffs], Mon Oct 2 17:31:39 2023 UTC (5 months ago) by martin
Branch: netbsd-9
Changes since 1.76.2.1: +2 -2 lines
Diff to previous 1.76.2.1 (colored) to branchpoint 1.76 (colored) next main 1.77 (colored)

Pull up following revision(s) (requested by lukem in ticket #1743):

	libexec/ftpd/version.h: revision 1.80

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR

Revision 1.77.6.2 / (download) - annotate - [select for diffs], Mon Oct 2 17:28:58 2023 UTC (5 months ago) by martin
Branch: netbsd-10
CVS Tags: netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1
Changes since 1.77.6.1: +2 -2 lines
Diff to previous 1.77.6.1 (colored) to branchpoint 1.77 (colored) next main 1.78 (colored)

Pull up following revision(s) (requested by lukem in ticket #390):

	libexec/ftpd/version.h: revision 1.80

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR

Revision 1.76.2.1 / (download) - annotate - [select for diffs], Mon Oct 2 17:13:33 2023 UTC (5 months ago) by martin
Branch: netbsd-9
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

Pull up following revision(s) (requested by lukem in ticket #1739):

	libexec/ftpd/ftpd.c: revision 1.207
	libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.

Revision 1.77.6.1 / (download) - annotate - [select for diffs], Mon Oct 2 13:45:42 2023 UTC (5 months ago) by martin
Branch: netbsd-10
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

Pull up following revision(s) (requested by lukem in ticket #385):

	libexec/ftpd/ftpd.c: revision 1.207
	libexec/ftpd/version.h: revision 1.78

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.

Revision 1.80 / (download) - annotate - [select for diffs], Sat Sep 30 18:10:55 2023 UTC (5 months ago) by shm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

NetBSD-ftpd 20230930

Update version to "NetBSD-ftpd 20230930" for changes:
- fix uninitialized memory usage in count_users()
- fix pam_set_item call with proper struct passed as PAM_SOCKADDR

Revision 1.79 / (download) - annotate - [select for diffs], Fri Sep 22 21:57:55 2023 UTC (5 months, 1 week ago) by lukem
Branch: MAIN
Changes since 1.78: +2 -2 lines
Diff to previous 1.78 (colored)

version NetBSD-ftpd 20230922 for MLSD/MLST fix

Revision 1.78 / (download) - annotate - [select for diffs], Sat Sep 2 12:16:29 2023 UTC (6 months ago) by lukem
Branch: MAIN
Changes since 1.77: +3 -3 lines
Diff to previous 1.77 (colored)

ftpd: improve seteuid error handling

Handle seteuid() failures. Per suggestion by Simon Josefsson.
Consistent logging and fatal exit if uid/gid switching fails.
Log correct errno if dataconn() fails.

Revision 1.77 / (download) - annotate - [select for diffs], Sat Jul 4 01:20:42 2020 UTC (3 years, 7 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-10-base, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Branch point for: netbsd-10
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

NetBSD-ftpd 20200615

Update version to "NetBSD-ftpd 20200615" for changes:
- Increase some buffer sizes.
- Rename blacklist to blocklist.

Revision 1.75.30.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:29 2019 UTC (4 years, 8 months ago) by christos
Branch: phil-wifi
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored) next main 1.76 (colored)

Sync with HEAD

Revision 1.76 / (download) - annotate - [select for diffs], Tue Jan 29 11:51:05 2019 UTC (5 years, 1 month ago) by lukem
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp
Branch point for: netbsd-9
Changes since 1.75: +3 -3 lines
Diff to previous 1.75 (colored)

NetBSD-ftpd 20180428

Update version to "NetBSD-ftpd 20180428" for changes:
- Fix violations of the sequence point rule.
- Check that stat and fstat succeed.
- Support blacklistd(8) hooks.
- Clear utmpx struct before writing it to wtmpx files.
- Fix directory stream leaks.
- Use explicit_memset(3) instead of memset(3) to clear password.
- Fix scope of variable. PR misc/50665.
- Ensure that closing socket exists. CID 603440.
- Add -f option to ftpd to stay in foreground with -D. PR bin/53221.

Revision 1.74.6.1 / (download) - annotate - [select for diffs], Thu May 22 11:37:13 2014 UTC (9 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.74.12.1 / (download) - annotate - [select for diffs], Sun Jun 23 06:28:49 2013 UTC (10 years, 8 months ago) by tls
Branch: tls-maxphys
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored) next main 1.75 (colored)

resync from head

Revision 1.75 / (download) - annotate - [select for diffs], Thu Mar 21 00:17:26 2013 UTC (10 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pagecache-base9, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-merge-20190127, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, pgoyette-compat, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan, agc-symver-base, agc-symver
Branch point for: phil-wifi, netbsd-8
Changes since 1.74: +3 -3 lines
Diff to previous 1.74 (colored)

Update version to 20110904 for the user-visible change I made back then:
   Reduce priority of syslog message if getpeername returns ENOTCONN.
   PR bin/18934 by Greg A. Woods (with supplied fix).

Revision 1.70.10.1 / (download) - annotate - [select for diffs], Wed Apr 21 05:26:10 2010 UTC (13 years, 10 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

sync to netbsd-5

Revision 1.70.8.1 / (download) - annotate - [select for diffs], Mon Apr 12 02:35:02 2010 UTC (13 years, 10 months ago) by snj
Branch: netbsd-5-0
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Pull up following revision(s) (requested by lukem in ticket #1372):
	libexec/ftpd/version.h: revision 1.74
Update version to 20100320 for Christos' commit to popen.c 1.37 for:
 PR/43023: Bruce Cran: FTPD bug remote crash

Revision 1.70.4.1 / (download) - annotate - [select for diffs], Mon Apr 12 02:30:12 2010 UTC (13 years, 10 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.70: +2 -2 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Pull up following revision(s) (requested by lukem in ticket #1372):
	libexec/ftpd/version.h: revision 1.74
Update version to 20100320 for Christos' commit to popen.c 1.37 for:
 PR/43023: Bruce Cran: FTPD bug remote crash

Revision 1.74 / (download) - annotate - [select for diffs], Sun Mar 21 20:27:26 2010 UTC (13 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pagecache-tag8, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys
Changes since 1.73: +2 -2 lines
Diff to previous 1.73 (colored)

Update version to 20100320 for Christos' commit to popen.c 1.37 for:
 PR/43023: Bruce Cran: FTPD bug remote crash

Revision 1.73 / (download) - annotate - [select for diffs], Sat Nov 7 03:10:05 2009 UTC (14 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.72: +2 -2 lines
Diff to previous 1.72 (colored)

NetBSD-ftpd 20091107:
* Fix WARNS=4 issues (const & sign mismatches, etc)
* Ensure various ftpd.conf values can't exceed their underlying types.
* Fix for 64 bit time_t and dev_t
* Rename internal getline() function to get_line() so it does
  conflict with the getline(3) libc function.
* Log both the hostname and numeric address.
* Improve man page mdoc formatting

Revision 1.70.6.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:37 2009 UTC (14 years, 9 months ago) by jym
Branch: jym-xensuspend
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored) next main 1.71 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.72 / (download) - annotate - [select for diffs], Sun Mar 15 07:48:36 2009 UTC (14 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.71: +2 -2 lines
Diff to previous 1.71 (colored)

Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.

Revision 1.71 / (download) - annotate - [select for diffs], Mon Mar 2 03:48:43 2009 UTC (15 years ago) by lukem
Branch: MAIN
Changes since 1.70: +3 -3 lines
Diff to previous 1.70 (colored)

bump version for remoteloghost & portability changes

Revision 1.67.2.2 / (download) - annotate - [select for diffs], Wed Sep 24 16:35:51 2008 UTC (15 years, 5 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.67.2.1: +2 -2 lines
Diff to previous 1.67.2.1 (colored) to branchpoint 1.67 (colored) next main 1.68 (colored)

Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.

Revision 1.59.6.1 / (download) - annotate - [select for diffs], Thu Sep 18 19:31:36 2008 UTC (15 years, 5 months ago) by bouyer
Branch: netbsd-3-1
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

Pull up following revision(s) (requested by lukem in ticket #1964):
	libexec/ftpd/ftpd.c: revision 1.187 via patch
	libexec/ftpd/extern.h: revision 1.58 via patch
	libexec/ftpd/ftpcmd.y: revision 1.88 via patch
	libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>

Revision 1.59.4.1 / (download) - annotate - [select for diffs], Thu Sep 18 19:31:33 2008 UTC (15 years, 5 months ago) by bouyer
Branch: netbsd-3-0
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

Pull up following revision(s) (requested by lukem in ticket #1964):
	libexec/ftpd/ftpd.c: revision 1.187 via patch
	libexec/ftpd/extern.h: revision 1.58 via patch
	libexec/ftpd/ftpcmd.y: revision 1.88 via patch
	libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>

Revision 1.59.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 19:30:43 2008 UTC (15 years, 5 months ago) by bouyer
Branch: netbsd-3
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored) next main 1.60 (colored)

Pull up following revision(s) (requested by lukem in ticket #1964):
	libexec/ftpd/ftpd.c: revision 1.187 via patch
	libexec/ftpd/extern.h: revision 1.58 via patch
	libexec/ftpd/ftpcmd.y: revision 1.88 via patch
	libexec/ftpd/version.h: patch
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>

Revision 1.65.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 18:24:59 2008 UTC (15 years, 5 months ago) by bouyer
Branch: netbsd-4
Changes since 1.65.2.1: +1 -1 lines
Diff to previous 1.65.2.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Pull up following revision(s) (requested by lukem in ticket #1202):
	libexec/ftpd/ftpd.c: revision 1.187
	libexec/ftpd/extern.h: revision 1.58
	libexec/ftpd/version.h: patch
	libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>

Revision 1.65.12.2 / (download) - annotate - [select for diffs], Thu Sep 18 18:24:39 2008 UTC (15 years, 5 months ago) by bouyer
Branch: netbsd-4-0
CVS Tags: netbsd-4-0-1-RELEASE
Changes since 1.65.12.1: +1 -1 lines
Diff to previous 1.65.12.1 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored)

Pull up following revision(s) (requested by lukem in ticket #1202):
	libexec/ftpd/ftpd.c: revision 1.187
	libexec/ftpd/extern.h: revision 1.58
	libexec/ftpd/version.h: patch
	libexec/ftpd/ftpcmd.y: revision 1.88
Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.o=
rg>

Revision 1.65.2.1 / (download) - annotate - [select for diffs], Thu Sep 18 18:18:32 2008 UTC (15 years, 5 months ago) by bouyer
Branch: netbsd-4
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Pull up following revision(s) (requested by lukem in ticket #1201):
	libexec/ftpd/ftpd.c: revision 1.183
	libexec/ftpd/Makefile: revision 1.58
	libexec/ftpd/version.h: revision 1.66
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally.  This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary.  For example:
  Name (localhost:lukem):
  331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
  Name (localhost:lukem): root
  331 User root accepted, provide password.
This is independent of (and effectively exclusive to) USE_SKEY support.
Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.

Revision 1.65.12.1 / (download) - annotate - [select for diffs], Thu Sep 18 18:17:00 2008 UTC (15 years, 5 months ago) by bouyer
Branch: netbsd-4-0
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Pull up following revision(s) (requested by lukem in ticket #1201):
	libexec/ftpd/ftpd.c: revision 1.183
	libexec/ftpd/Makefile: revision 1.58
	libexec/ftpd/version.h: revision 1.66
Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally.  This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary.  For example:
  Name (localhost:lukem):
  331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
  Name (localhost:lukem): root
  331 User root accepted, provide password.
This is independent of (and effectively exclusive to) USE_SKEY support.
Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Sep 16 12:30:38 2008 UTC (15 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-3, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2
Branch point for: netbsd-5-0, netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

Enhance -C to support an optional @host ('-C user[@host]'):
checks whether user as connecting from host would be granted
access by ftpusers(5).

Support IPv6 in the host directive of ftpusers(5).
(May resolve PR 26555)

Both features from Rudolf Cejka <cejkar@fit.vutbr.cz>
(FreeBSD's tnftpd port maintainer).

Revision 1.69 / (download) - annotate - [select for diffs], Sat Sep 13 03:30:35 2008 UTC (15 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.68: +2 -2 lines
Diff to previous 1.68 (colored)

Don't split large commands into multiple commands; just fail on them.
This prevents CSRF-like attacks, when a web browser is used to access
an ftp server.
Reported by Maksymilian Arciemowicz <cxib@securityreason.com>.
Fix mostly derived from OpenBSD, written by Moritz Jodeit <moritz@OpenBSD.org>

Revision 1.67.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:29:54 2008 UTC (15 years, 8 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.66.2.2 / (download) - annotate - [select for diffs], Tue Jun 17 09:13:39 2008 UTC (15 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.66.2.1: +2 -2 lines
Diff to previous 1.66.2.1 (colored) to branchpoint 1.66 (colored) next main 1.67 (colored)

sync with head.

Revision 1.68 / (download) - annotate - [select for diffs], Mon Jun 9 00:33:40 2008 UTC (15 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Changes since 1.67: +2 -2 lines
Diff to previous 1.67 (colored)

Don't use non-standard "u_<foo>" types.
Strip trailing whitespace (as well as ':'s) off PAM password prompts.
Improve some debug logging related to PAM.

Revision 1.66.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:30:44 2008 UTC (15 years, 9 months ago) by yamt
Branch: yamt-pf42
Changes since 1.66: +1 -8 lines
Diff to previous 1.66 (colored)

sync with head.

Revision 1.67 / (download) - annotate - [select for diffs], Mon Apr 28 20:23:03 2008 UTC (15 years, 10 months ago) by martin
Branch: MAIN
CVS Tags: yamt-pf42-base3, yamt-pf42-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.66: +1 -8 lines
Diff to previous 1.66 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.66 / (download) - annotate - [select for diffs], Thu Mar 27 08:12:09 2008 UTC (15 years, 11 months ago) by lukem
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.65: +3 -3 lines
Diff to previous 1.65 (colored)

Reorganize USE_PAM support so that the reply(331,) from USER is
performed by the pam_conv (PAM conversation) callback, which then
getline()s the PASS reply internally.  This involves calling
auth_pam() from user() and caching the result to use later in pass().
This allows the PAM modules to present a different password prompt
dialog if necesary.  For example:
  Name (localhost:lukem):
  331 User lukem accepted, provide password [ otp-md4 89 xxxx12345 ].
versus
  Name (localhost:lukem): root
  331 User root accepted, provide password.

This is independent of (and effectively exclusive to) USE_SKEY support.

Previously ftpd with USE_SKEY=yes would provide the skey prompt
if the user had an skey configured, even if /etc/pam.d/ftpd didn't
have pam_skey in use.
I.e., ftpd shouldn't need special support for custom password prompts
(such as skey) if PAM is in use.

Revision 1.65 / (download) - annotate - [select for diffs], Mon Sep 25 06:30:55 2006 UTC (17 years, 5 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, matt-armv6-nbase, matt-armv6-base, matt-armv6, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf
Branch point for: netbsd-4-0, netbsd-4
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

Update to 20060923 for the following changes:

20060201
debug -> ftpd_debug
xstrdup -> ftpd_strdup

20060317
* Make sure that "su" is initialized before dereferencing it.
  Fixes Coverity CID 1075.
* Set file to NULL after calling fclose().
  Fixes Coverity CID 2669.
* Remove unreachable code (res could never be NULL here).
  Fixes Coverity CID 712.

20060509
change (mostly) int to socklen_t.  GCC 4 doesn't like that int and
socklen_t are different signness.

20060923
Apply patch from PR bin/33261 sent by FUKAOMI Naoki:
"ftpd does not update wtmpx".

Revision 1.64 / (download) - annotate - [select for diffs], Thu Nov 24 23:47:23 2005 UTC (18 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: abandoned-netbsd-4-base, abandoned-netbsd-4
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

NLST should return 450 instead of 550 upon error, per RFC 959.

Revision 1.63 / (download) - annotate - [select for diffs], Mon Oct 3 00:02:25 2005 UTC (18 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.62: +2 -2 lines
Diff to previous 1.62 (colored)

logxfer(): don't use the same buffer to store the results of two separate
concurrent realpath(3)s, otherwise we'll log the wrong information
for a rename.
Noted by Dmitry Sivachenko in private mail.

Revision 1.62 / (download) - annotate - [select for diffs], Wed Aug 24 15:51:41 2005 UTC (18 years, 6 months ago) by ginsbach
Branch: MAIN
Changes since 1.61: +2 -2 lines
Diff to previous 1.61 (colored)

* Add recvbufsize configuration option
  This allows for setting the passive socket's SO_RCVBUF.  Option works
  similarly to the current sendbufsize configuration option.
* Change how recveive_data() works
  When reading data from the socket for passive transfers to the server,
  receive_data() now works very similar to send_data_with_read().  Reads
  from the network are now done using either the filesystem block size or
  the configuration option readsize chunks.
* Crank version.h
  [Changes discussed with lukem.]

Revision 1.61 / (download) - annotate - [select for diffs], Thu Aug 4 17:41:35 2005 UTC (18 years, 7 months ago) by peter
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Implement option "-D", for running ftpd in standalone mode (daemon).
ftpd will listen on the default FTP port for incoming connections and fork
a child for each connection.  This is lower overhead than starting ftpd from
inetd(8) and thus might be useful on busy servers to reduce load.

Inspired by FreeBSD.
Reviewed by lukem@.

Revision 1.60 / (download) - annotate - [select for diffs], Tue Jul 26 05:43:07 2005 UTC (18 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Crank version for Christos' utmpx/wtmpx changes on 20050623

Revision 1.59 / (download) - annotate - [select for diffs], Thu Mar 3 22:19:47 2005 UTC (19 years ago) by ginsbach
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE
Branch point for: netbsd-3-1, netbsd-3-0, netbsd-3
Changes since 1.58: +2 -2 lines
Diff to previous 1.58 (colored)

* Add hidesymlinks configuration option
  This adds a -L to all ls command arguments so that the file or directory
  the link references is listed rather than the link itself.  This was
  inspired by IRIX ftpd's -S option.
  [Discussed with lukem some time ago.]
* Crank version.h [right Luke? :-)]

Revision 1.58 / (download) - annotate - [select for diffs], Fri Nov 19 16:03:59 2004 UTC (19 years, 3 months ago) by ginsbach
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

* Don't allow accounts with age expired passwords to login.  Any account
  that is required to change their password will not be allowed FTP
  access.  Inspired by similar functionality in other FTP daemons.
  (approved by lukem)

* Crank version to 20041119 per lukem's request.

Revision 1.42.2.2 / (download) - annotate - [select for diffs], Tue Aug 31 01:35:55 2004 UTC (19 years, 6 months ago) by jmc
Branch: netbsd-1-6
Changes since 1.42.2.1: +3 -3 lines
Diff to previous 1.42.2.1 (colored) to branchpoint 1.42 (colored) next main 1.43 (colored)

Pullup rev 1.44-1.57 (requested by he in ticket #1739)

Update to NetBSD ftpd 20040809.  Fixes SA#2004-009.

Revision 1.12.2.4 / (download) - annotate - [select for diffs], Thu Aug 26 05:00:43 2004 UTC (19 years, 6 months ago) by jmc
Branch: netbsd-1-5
Changes since 1.12.2.3: +3 -3 lines
Diff to previous 1.12.2.3 (colored) to branchpoint 1.12 (colored) next main 1.13 (colored)

Pullup rev 1.29-1.57 (requested by he in ticket #158)

Update to NetBSD ftpd 20040809.  Fixes SA#2004-009.

Revision 1.56.2.1 / (download) - annotate - [select for diffs], Thu Aug 12 20:44:42 2004 UTC (19 years, 6 months ago) by jmc
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) next main 1.57 (colored)

Pullup rev 1.57 (requested by lukem in ticket #757)

* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
  abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once.  If we need to change it,
  cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
  latter isn't reentrant and the hacks to work around that are ugly.
  We now examine urgflag at appropriate locations and call handleoobcmd()
  if it's set.  Since the only OOB commands we currently implement are
  ABOR and STAT, this isn't an issue.

Revision 1.57 / (download) - annotate - [select for diffs], Mon Aug 9 12:56:48 2004 UTC (19 years, 6 months ago) by lukem
Branch: MAIN
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored)

Fixes from (or inspired by) OpenBSD:
* Fix yacc parser error recovery so that setjmp(3)/longjmp(3) is unnecessary.
* Fix SIGURG handler to set an urgflag that's later tested, rather than
  abusing setjmp(3)/longjmp(3).
* Use "volatile sig_atomic_t" as the type of variables modified by sig handlers.
* Use sigaction(3) instead of signal(3) to set the signal handlers.
* Only set the main SIGALRM handler once.  If we need to change it,
  cache the old handler and restore appropriately...
* Remove a bunch of signal races by improving the signal handlers.
* Fix memory leak with 'ESPV ALL'.

My stuff:
* Clean up the debug message in reply(); use vsnprintf(3) instead of vsyslog(3).
* Rework parsing of OOB commands to _not_ use the yacc parser, since the
  latter isn't reentrant and the hacks to work around that are ugly.
  We now examine urgflag at appropriate locations and call handleoobcmd()
  if it's set.  Since the only OOB commands we currently implement are
  ABOR and STAT, this isn't an issue.  (I also can't find the reference in
  RFC2228 where MIC, CONF & ENC are OOB-only commands.  Go figure.)
  I could clean up the is_oob stuff some more, but the remaining stuff
  in ftpcmd.y is harmless and it's unnecessary churn right this moment.

Revision 1.56 / (download) - annotate - [select for diffs], Wed Dec 10 01:18:56 2003 UTC (20 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Use sysconf(_SC_LOGIN_NAME_MAX) to determine the length of login
names, rather than assuming LOGIN_NAME_MAX.
Based on patch from Garrett Wollman via David O'Brien (both at FreeBSD.org)

Revision 1.55 / (download) - annotate - [select for diffs], Mon Jun 30 03:06:06 2003 UTC (20 years, 8 months ago) by tacha
Branch: MAIN
Changes since 1.54: +2 -2 lines
Diff to previous 1.54 (colored)

Add ftpd_loginx() and ftpd_logwtmpx() and use them to hold wtmpx file
open while a session.

Close bin/21692 by bqt@Krille.Update.UU.SE.

Revision 1.54 / (download) - annotate - [select for diffs], Wed Feb 26 12:27:04 2003 UTC (21 years ago) by lukem
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Add '-L xferlogfile', to write xferlog entries there rather than syslog them.
Based on work from Dmitry Sivachenko.

Revision 1.53 / (download) - annotate - [select for diffs], Mon Feb 24 12:57:06 2003 UTC (21 years ago) by lukem
Branch: MAIN
Changes since 1.52: +2 -2 lines
Diff to previous 1.52 (colored)

use LLT and STRTOLL() instead of off_t and strtoull() for parsing the
"larger than int" arguments from commands.  improves portability.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Feb 23 13:04:37 2003 UTC (21 years ago) by lukem
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

rename local copies of login(), logout() and logwtmp() to
ftpd_login(), ftpd_logout() and ftpd_logwtmp() respectively.
(makes utmp support much easier in tnftpd).

per suggestion in mail from Mike Heffner <mheffner@vt.edu>, who
forwarded patch from Michael Ranner <mranner@inode.at>.

Revision 1.51 / (download) - annotate - [select for diffs], Sun Feb 23 08:33:13 2003 UTC (21 years ago) by lukem
Branch: MAIN
Changes since 1.50: +2 -2 lines
Diff to previous 1.50 (colored)

crank version for:

Stop ftpd changing inetd's 'logname'
Stop buffer overrun if {NGROUPS_MAX} is greater than the compile time
NGROUPS_MAX.

Revision 1.50 / (download) - annotate - [select for diffs], Wed Jan 22 04:46:08 2003 UTC (21 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.49: +2 -2 lines
Diff to previous 1.49 (colored)

Apply DoS fix as described by Crist J. Clark <crist.clark@attbi.com>
on <security@freebsd.org>, and subsequently in FreeBSD's cvs repository
as libexec/ftpd/ftpd.c rev 1.133:

	The FTP daemon was vulnerable to a DoS where an attacker could bind()
	up port 20 for an extended period of time and thus lock out all other
	users from establishing PORT data connections. Don't hold on to the
	bind() while we loop around waiting to see if we can make our
	connection.

Bump version to 20030122.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Nov 29 14:40:00 2002 UTC (21 years, 3 months ago) by lukem
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.48: +2 -2 lines
Diff to previous 1.48 (colored)

- convert to using libc's strsuftoll(3)
- use LLT (aka 'long long type') for all numeric class parameters
- improve description of various ftpd.conf(5) options
- statcmd(): print out:  mmapsize readsize writesize sendbufsize sendlowat

Revision 1.48 / (download) - annotate - [select for diffs], Sat Oct 26 04:19:56 2002 UTC (21 years, 4 months ago) by lukem
Branch: MAIN
Changes since 1.47: +2 -2 lines
Diff to previous 1.47 (colored)

crank version for statfilecmd() 'fix'

Revision 1.47 / (download) - annotate - [select for diffs], Mon Oct 7 13:30:00 2002 UTC (21 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.46: +2 -2 lines
Diff to previous 1.46 (colored)

Change arguments of login_utmp(line, name, host) (to be consistent
with logwtmp(3)/logwtmpx(3)), and call correctly.
Resolves [bin/18498] by Geoff Wing, who identified that the previous
version was being called incorrectly, albiet in a different manner.

Revision 1.46 / (download) - annotate - [select for diffs], Thu Oct 3 02:56:47 2002 UTC (21 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.45: +2 -2 lines
Diff to previous 1.45 (colored)

Enable GLOB_BRACE for ftpd.conf(5)'s `notify' directive.
Now it's much easier to list multiple files...

Revision 1.45 / (download) - annotate - [select for diffs], Tue Jul 2 02:18:02 2002 UTC (21 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.44: +2 -2 lines
Diff to previous 1.44 (colored)

- Change lexer to support numbers > 2^31-1 (stored in an off_t), and allow
  RESTart to use the larger numbers.
  Fix from Maxim Konovalov <maxim@freebsd.org>
- Update version
- Minor whitespace changes

Revision 1.42.2.1 / (download) - annotate - [select for diffs], Sat Jun 15 03:42:42 2002 UTC (21 years, 8 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Pull up revision 1.43 (requested by lukem in ticket #282):
Implement "SITE UMASK" `enabled command' check with (modified)
check_write(), so that a user who has modify disabled gets an error
message rather than a hung connection.
Noted by M.J. Rutter <mjr19@cus.cam.ac.uk> in private email.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Jun 15 03:40:46 2002 UTC (21 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.43: +2 -2 lines
Diff to previous 1.43 (colored)

crank copyright

Revision 1.43 / (download) - annotate - [select for diffs], Sat Jun 15 03:36:47 2002 UTC (21 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.42: +2 -2 lines
Diff to previous 1.42 (colored)

Implement "SITE UMASK" `enabled command' check with (modified)
check_write(), so that a user who has modify disabled gets an error
message rather than a hung connection.
Noted by M.J. Rutter <mjr19@cus.cam.ac.uk> in private email.

Revision 1.42 / (download) - annotate - [select for diffs], Wed Feb 13 15:15:23 2002 UTC (22 years ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6
Changes since 1.41: +2 -2 lines
Diff to previous 1.41 (colored)

Fixes for mlsd/mlst standards conformance issues (noted by Robert Elz):
- mlst shouldn't return cdir or pdir for type, only dir
- mlst should always provide a full path name
- mlsd should provide a full path name for the cdir entry.  (providing a
  full path name for the pdir entry is optional, and i punted on that).

Revision 1.41 / (download) - annotate - [select for diffs], Mon Feb 11 11:45:07 2002 UTC (22 years ago) by lukem
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Don't log an xferlog-style entry if bytes == -1.
Per suggestion by Kimmo Suominen and observation of wu-ftpd in similar
circumstances.

Revision 1.40 / (download) - annotate - [select for diffs], Fri Feb 1 04:35:31 2002 UTC (22 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

fix previous, and ensure that closedataconn() is only called after dataconn()
and with a non-NULL file pointer.  active transfers now work correctly again,
passive transfers work, and the data stream is only closed after a PASV or
EPSV if a successful connection was initiated with dataconn().

Revision 1.39 / (download) - annotate - [select for diffs], Mon Jan 21 11:25:21 2002 UTC (22 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

in closedataconn(), only close the passive data fd if the main data
descriptor was set by dataconn().  this fixes a problem for clients (such
as lynx and netscape) that only sent PASV/EPSV after a transfer (RETR, LIST,
STOR) started and returned 150.  certain command sequences could return 550
(etc) before setting up the dataconn(), and would run into this bug. netbsd's
ftp didn't hit this bug because it always sends PASV/EPSV before a new
transfer command.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Dec 6 02:00:07 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.37: +2 -2 lines
Diff to previous 1.37 (colored)

Fix skey password challenge.  Problem reported in [bin/14848] by John F. Woods.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Dec 4 13:54:13 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.36: +2 -2 lines
Diff to previous 1.36 (colored)

Add two new ftpd.conf(5) directives:
- 'denyquick'; deny a connection so tagged by ftpusers(5) after the USER
  command instead of the PASS command. whilst this might provide some
  info leakage of accounts names if you have some `real' or `chroot'
  users enabled and not others, it does prevent accidental entering of
  such passwords if you have all such users denied. This option is
  strongly recommended on anonymous-only servers.
  Functionality requested by Rob Windsor in [bin/12602]
- 'private'; don't display class related information in the output of STAT.
  For paranoid admins.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Dec 1 10:25:30 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.35: +2 -2 lines
Diff to previous 1.35 (colored)

- enable case insensitive fnmatch(3)ing for hostname globs in ftpusers(5)
- enable WARNS=2

Revision 1.35 / (download) - annotate - [select for diffs], Tue Nov 27 23:42:41 2001 UTC (22 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.34: +2 -2 lines
Diff to previous 1.34 (colored)

- Don't try and use the motd if it's empty.
  Problem reported in [bin/14751] by Kimmo Suominen
- Display conffilename() version of limitfile and motd in status output

Revision 1.34 / (download) - annotate - [select for diffs], Wed Sep 19 00:50:53 2001 UTC (22 years, 5 months ago) by lukem
Branch: MAIN
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

a few changes from Mike Heffner <mheffner@vt.edu> in private email:
- totally clear a glob buffer before use, because FreeBSD depends on
  some of the other fields being cleared (other than just gl_offs)
- in strend(), ensure that the source string isn't too large
- remove unnecessarily complicated sizing of proctitle, since snprintf()
  will truncate it anyway

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jun 26 19:30:45 2001 UTC (22 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

s/tise/tize/ in docco, add "advertize" as synonym for "advertise"

Revision 1.32 / (download) - annotate - [select for diffs], Wed Apr 25 01:46:26 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version

Revision 1.31 / (download) - annotate - [select for diffs], Tue Apr 17 01:37:04 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

use own code instead of bother with glob() to do ~ expansion in pathname;
there's no need to support glob wildcards in this case when it's not expanded
here in the non-~ case

Revision 1.30 / (download) - annotate - [select for diffs], Tue Apr 17 00:59:59 2001 UTC (22 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.29: +2 -2 lines
Diff to previous 1.29 (colored)

limit the number of matches in a ~ pathname glob, and complain if more
than one path is matched.

Revision 1.29 / (download) - annotate - [select for diffs], Tue Apr 10 01:44:56 2001 UTC (22 years, 10 months ago) by itojun
Branch: MAIN
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

bump version for IPv4 PASV fix.  PR 12558

Revision 1.12.2.3 / (download) - annotate - [select for diffs], Thu Mar 29 14:14:19 2001 UTC (22 years, 11 months ago) by lukem
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001
Changes since 1.12.2.2: +2 -2 lines
Diff to previous 1.12.2.2 (colored) to branchpoint 1.12 (colored)

sync ftpd to -current with the following revisions (for lukem/christos):
	Makefile	1.43-1.44
	cmds.c		1.7-1.8,  1.10-1.12
	conf.c		1.35-1.40
	extern.h	1.32-1.38
	ftpcmd.y	1.53-1.59
	ftpd.8		1.58-1.63
	ftpd.c		1.102-1.104,  1.106-1.122
	ftpd.conf.5	1.12-1.15
	ftpusers.5	1.8
	logwtmp.c	1.16
	popen.c		1.23-1.25
	version.h	1.28

a quick summary of user-visible changes;
	- fix glob DoS by using GLOB_LIMIT
	- add ftpd.conf directives `advertise', `maxfilesize', `sanenames'
	- add flags: -P dataport, -X - wuftpd style log entries,
	  -q/-Q - (en|dis)able pidfiles, -u/-U - (en|dis)able utmp,
	  -w/-W - (en|dis)able wtmp

Revision 1.28 / (download) - annotate - [select for diffs], Thu Mar 29 13:15:07 2001 UTC (22 years, 11 months ago) by lukem
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

crank for GLOB_LIMIT fix

Revision 1.27 / (download) - annotate - [select for diffs], Mon Dec 18 02:32:51 2000 UTC (23 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.26: +2 -2 lines
Diff to previous 1.26 (colored)

Features:

* Add ftpd.conf(5) directive `advertise'; change the address that is
  advertised to the client for PASV transfers. this may be useful in
  certain firewall/NAT environments.

  Feature requested in [bin/9606] by Scott Presnell.

* Add -X option; syslog wu-ftpd style xferlog messages, prefixed with
  `xferlog: '.  An example line from syslog (wrapped):
	Dec 16 18:50:24 odysseus ftpd[571]: xferlog: Sat Dec 16 18:50:24 2000
	2 localhost 3747328 /pub/WLW2K601.EXE b _ o a lukem@ FTP 0 * c

  These messages can be converted to a wu-ftpd style xferlog file
  suitable for parsing with third-party tools with something like:
	grep 'xferlog: ' /var/log/xferlog | \
	    sed -e 's/^.*xferlog: //' >wuxferlog

  The format is the same as the wu-ftpd xferlog entries (with the leading
  syslog stuff), but different from the wu-ftpd syslogged xferlog entries
  because the latter is not as easy to convert into the standard xferlog
  file format.

  The choice to only syslog the xferlog messages rather than append to
  a /var/log/xferlog file was made because the latter doesn't work to
  well in the situation where the logfile is rotated and compressed and
  a long-running ftpd still has a file-descriptor to the now nonexistant
  xferlog file, and the log message will then get lost.

  Feature requested in [bin/11651] by Hubert Feyrer.


Fixes:

* In ftpd(8), clarify the -a and -c options.

* More clarifications in ftpd.conf(5).

* Ensure that all ftpd.conf commands set a parameter back to sane defaults
  if an argument of `none' or bad settings are given.

* Support the `chroot' directive for `REAL' users too (for consistency).

* For `GUEST' users, store the supplied password in pw->pw_passwd for use
  later in the xferlog.

* If show_chdir_messages() is given a code of -1, flush the cache of
  visited directories.  Invoke show_chdir_messages(-1) in end_login().

* Only syslog session stats if logging is requested.

* Rename logcmd() -> logxfer(), and dolog() -> logremotehost().

* Use cprintf() instead of fprintf() where appropriate.

* Minor KNF, and make a couple of functions static that were declared static.

Revision 1.12.2.2 / (download) - annotate - [select for diffs], Wed Dec 13 21:19:13 2000 UTC (23 years, 2 months ago) by he
Branch: netbsd-1-5
Changes since 1.12.2.1: +2 -2 lines
Diff to previous 1.12.2.1 (colored) to branchpoint 1.12 (colored)

Apply patch (requested by he):
  Fix a one-byte buffer overrun.
  Note by appending an 'a' to the version number,
  since we do not here upgrade ftpd wholesale.

Revision 1.26 / (download) - annotate - [select for diffs], Mon Dec 4 10:50:39 2000 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

in replydirname(), avoid one-byte overrun.
From: Kristian Vlaardingerbroek <kris@obit.nl> (to bugs@openbsd)

Revision 1.25 / (download) - annotate - [select for diffs], Thu Nov 30 02:59:12 2000 UTC (23 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

- move password checking into separate valid_passwd() function, to assist
  in porting to other systems.
- don't syslog() or setproctitle() "ACCT" lines (as per "PASS")
- replace #ifdef HASSETPROCTITLE with #if HAVE_SETPROCTITLE, and set the
  latter #ifdef BSD4_4
- don't compile in internal `ls' #ifdef NO_INTERNAL_LS. will need Makefile
  support if this is to be used on NetBSD.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Nov 28 09:32:20 2000 UTC (23 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

- ensure all uses of AF_INET6 are wrapped in #ifdef INET6
- don't define `ALL' as a token twice in the grammar

Revision 1.23 / (download) - annotate - [select for diffs], Fri Nov 24 12:56:45 2000 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.22: +2 -2 lines
Diff to previous 1.22 (colored)

cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach
scope identifier).
always check error result from getnameinfo.

Revision 1.22 / (download) - annotate - [select for diffs], Thu Nov 16 13:15:14 2000 UTC (23 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

- new ftpd.conf directives:
	maxfilesize	set the maximum size of uploaded files
	sanenames	if set, only permit uploaded filenames that contain
			characters from the set "-+,._A-Za-z0-9" and that
			don't start with `.'

- new/changed command line options:
	-e emailaddr	define email address for %E (see below)
	-P dataport	use dataport as the dataport (instead of ctrlport-1)
	-q		use pid files to count users	[default]
	-Q		don't use pid files to count users
	-u		write entries to utmp
	-U		don't write entries to utmp	[default]
	-w		write entries to wtmp		[default]
	-W		don't write entries to wtmp

	  NOTE:	-U used to mean `write utmp entries'. Its meaning has changed
		so that it's orthogonal with -q/-Q and -w/-W. This isn't
		considered a major problem, because using -U isn't going to
		enable something you don't want, but will disable something
		you did want (which is safer).

- new display file escape sequences:
	%E	email address
	%s	literal `s' if the previous %M or %N wasn't ``1''.
	%S	literal `S' if the previous %M or %N wasn't ``1''.

- expand the description of building ~ftp/incoming to cover the
  appropriate ftpd.conf(5) directives (which are defaults, but it pays
  to explicitly explain them)

- replace strsuftoi() with strsuftoll(), which returns a long long if
  supported, otherwise a long

- rework the way that check_modify and check_upload are done in the yacc
  parser; they're merged into a common check_write() function which is
  called explicitly

- merge all ftpclass `flag variables' into a single bitfield-based flag element

- move various common bits of parse_conf() into a couple of macros

- clean up some comments

Revision 1.21 / (download) - annotate - [select for diffs], Wed Nov 15 02:32:30 2000 UTC (23 years, 3 months ago) by lukem
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

changes to improve portability:
* replace union sockunion {} with struct sockinet {}, and modify the code
  accordingly. this is possibly more portable, as it doesn't rely upon
  the structure alignment within the union for our own stuff.  uses local
  su_len unless HAVE_SOCKADDR_SA_LEN is defined (set ifdef BSD4_4)
  (XXX: haven't tested the ipv6 stuff)
* always use getaddrinfo() and getnameinfo() instead of maintaining two code
  paths. (lukemftpd will provide replacements for these on older systems)
* use lockf() instead of open(.., O_EXLOCK) to lock the pid file
* minor KNF
* clean up long long support: create helper #defines and use as appropriate:
        #define		NO_LONG_LONG	! NO_LONG_LONG
        -------		------------	--------------
        LLF		"%ld"		"%lld"
        LLFP(x)		"%" x "ld"	"%" x "lld"
        LLT		long		long long
        ULLF		"%lu"		"%llu"
        ULLFP(x)	"%" x "lu"	"%" x "llu"
        ULLT		unsigned long	unsigned long long
        STRTOLL(x,y,z)	strtol(x,y,z)	strtoll(x,y,z)

Revision 1.20 / (download) - annotate - [select for diffs], Mon Nov 13 11:50:46 2000 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

- improve RFC2428 conformance.
  return 522 on unknown protocol identifier on EPRT.
- clarify EPSV/EPRT/LPSV/LPRT behavior.
- repair memory leak and lack of boundary check on EPRT.
- make sure we do not resolve DNS on EPRT.
sync with kame.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jul 26 13:55:28 2000 UTC (23 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (colored)

add support for -W; don't log to wtmp (orthogonal of -U which logs to utmp).
inspired by similar option in wuftpd.

Revision 1.12.2.1 / (download) - annotate - [select for diffs], Tue Jul 25 08:38:41 2000 UTC (23 years, 7 months ago) by lukem
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

user visible changes (besides checking the cvs log):
* make checkportcmd the default
* add -r; force permanent drop of root privs after login
* add -V vers; change version string to vers
* add -H; act as -h `hostname`
* permanently drop root privs if it makes sense to do so (e.g; logging in as
  guest/chroot user on a port > 1024)
* fix reference to draft-ietf-ftpext-mlst-11
* add ftpd.conf directives: chroot, homedir
* fix base64_encode() and generation of the unique fact
* crank version to 20000723

Revision 1.18 / (download) - annotate - [select for diffs], Sun Jul 23 14:40:48 2000 UTC (23 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.17: +2 -2 lines
Diff to previous 1.17 (colored)

* make checkportcmd the default. this breaks third-party proxy ftp but
  prevents the ftp bounce attack, and we should be secure out of the
  box, not require users to tweak obscure stuff.
* allow the version string reported to clients to be changed with '-V vers'.
  if vers is empty or `-', don't report a version.
* if -r is given, permanently drop root privs
* if not a REAL user (i.e, GUEST or CHROOT), and ftpd is running on a port
  > IPPORT_RESERVED+1, permanently drop root privs
* don't bother reverting to root privs to logout of wtmp/utmp; since the
  file descriptor is already open this isn't necessary.
* fix the binding of the port for the PORT/LPRT/EPRT connection to be the
  ctrl_addr.su_port-1, not hardcoded to `20' (this was broken in the ipv6
  merge). if root privs have been dropped, and this would be a port <
  IPPORT_RESERVED, use a random port instead (which isn't RFC959 compliant
  but it doesn't appear that many clients care).
* prevent login of a new user if privs have been dropped and already logged
  in as a REAL user (existing check already stops GUEST & CHROOT users).
* move the port check stuff into a separate port_check() function, and use
  for PORT, LPRT, and EPRT checks. inspired by freebsd
* minor KNF
* minor man page cleanup

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 17 02:30:56 2000 UTC (23 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

* add two new ftpd.conf(5) directives:
	chroot	specify dir to chroot to for GUEST and CHROOT users, to
		override -a anondir or the user's homedir.
	homedir	specify dir to change to upon login; also used for ~ expansion
		and $HOME for subprocesses)
  both of these can take % escapes: %u (username), %d (homedir), %c (class).
* fix NLST to take a pathname not a STRING, so that ~ expansion works
* modify CWD to use the homedir parsed from curclass.homedir
* implement format_path(dst, src), to parse src expanding % escapes (see above)
  into dst.
* rename format_file() to display_file()

Revision 1.16 / (download) - annotate - [select for diffs], Sat Jul 15 03:45:20 2000 UTC (23 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

* add -H, which acts like -h `hostname`. (requested by kim@)
* refer to draft-ietf-ftpext-mlst-11 instead of -10

Revision 1.15 / (download) - annotate - [select for diffs], Mon Jul 10 22:41:18 2000 UTC (23 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

base64_encode(): separate out the special case for the last 2 bytes, and
be a bit safer with signed chars. per discussion with kre.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Jul 9 14:26:34 2000 UTC (23 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

- base64_encode(): fix garbled output due to fencepost error. output now
  appears to match that of 'mimencode' (from metamail).
  problem noted by kre@munnari.oz.au.
- fact_unique(): encode a combined dev_t+ino_t chunk rather than separate bits

Revision 1.13 / (download) - annotate - [select for diffs], Sun Jul 9 14:18:08 2000 UTC (23 years, 7 months ago) by lukem
Branch: MAIN
Changes since 1.12: +2 -2 lines
Diff to previous 1.12 (colored)

setproctitle(), and for any other printf variants, it is not a good idea
to pass variable directly like foo(x).  use foo("%s", x) to avoid misuse.
from: openbsd

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Thu Jun 22 15:58:18 2000 UTC (23 years, 8 months ago) by minoura
Branch: minoura-xpg4dl
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored) next main 1.11 (colored)

Sync w/ netbsd-1-5-base.

Revision 1.12 / (download) - annotate - [select for diffs], Mon Jun 19 15:15:04 2000 UTC (23 years, 8 months ago) by lukem
Branch: MAIN
CVS Tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

various fixes suggested by Robert Elz:
* implement closedataconn() and use appropriately (including in mlsd())
* only put leading space in front of MLST output (not MLSD output)
* MLSD: only output pdir and cdir entries when the type fact is requested.
* change error code for giving MLSD a non-directory from 550 to 501
* remove MLSx Type fact support for UNIX.* for now; it's not standardised yet.
* do a check_login when MLSD and MLST are given no args
* detect & complain about null facts in OPTS MLST
* cache getgroups() at login instead of calling each time in fact_perm()

other mods:
* implement cprintf(); as per fprintf() but increments total_bytes{,_out}
* implement CPUTC(); as per putc() but increments total_bytes{,_out}
* implement base64_encode()
* fact_unique() display base64 encoding of dev_t and ino_t rather than
  hex output; should scale if size of those changes
* change reply() so that a negative code acts as the initial line in a reply,
  code == 0 prefixes the line with 4 spaces, and code > 0 works as before.
  deprecate lreply(code, ) and lreply(0, ) in favour of reply(-code, ) and
  reply(0, ) respectively.
* use cprintf() and CPUTC() appropriately (often instead of printf(),
  lreply(-2, ) or lreply(-1, ).
  now we actually account for the data sent by MLST and MLSD.
* remove DEBUG support for sending MLSD output to control connection instead
  of data connection (my ftp client now supports MLSD :-)

Revision 1.11 / (download) - annotate - [select for diffs], Wed Jun 14 13:44:25 2000 UTC (23 years, 8 months ago) by lukem
Branch: MAIN
Changes since 1.10: +2 -2 lines
Diff to previous 1.10 (colored)

major overhaul (just before netbsd 1.5 :-):

* implement draft-ietf-ftpext-mlst-10 commands, especially MLST and MLSD.
  we already supported SIZE and MDTM. add the appropriate FEAT output lines.

* migrate a lot of the command code from ftpcmd.y and ftpd.c to cmds.c

* make dataconn(), feat(), lookup(), opts() and sizecmd() public

* modify struct tab so that it has a `flags' instead of `implemented' element,
  and remove the `hasopts' element.  If flags == 1, the command is implemented.
  if flags == 2, the command is implemented and takes options

* add macros ISDOTDIR(x) (is x ".") and ISDOTDOTDIR(x) (is x "..")

* modify lreply() so that lreply(-2, ...) just outputs the given info without
  a prefix or trailing \r\n. this saves doing b = printf(); total_* += b;

* enhance statcmd(). still needs work in the LPRT status stuff.

* crank version

Revision 1.10 / (download) - annotate - [select for diffs], Sat May 20 23:34:55 2000 UTC (23 years, 9 months ago) by lukem
Branch: MAIN
CVS Tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

- Always close(pdata) if it was a valid filedescriptor before setting it to -1.
  Problem noted in [bin/9642] by Takahiro Kambe <taca@sky.yamashina.kyoto.jp>,
  (part of which already had been solved by itojun a while ago), and provided
  patch covered most of the fixes needed. (Thanks Takahiro!)
- Consistently indent goto labels by one space.

Revision 1.9 / (download) - annotate - [select for diffs], Sat May 20 02:20:20 2000 UTC (23 years, 9 months ago) by lukem
Branch: MAIN
Changes since 1.8: +2 -2 lines
Diff to previous 1.8 (colored)

convert to ANSI C as per style guide

Revision 1.8 / (download) - annotate - [select for diffs], Sun Mar 5 06:12:19 2000 UTC (24 years ago) by lukem
Branch: MAIN
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

* don't bother with a version[] string, just use the macro as appropriate
* clean some more of the GLOBAL stuff
* fix unused var if -UHASSETPROCTITLE

Revision 1.7 / (download) - annotate - [select for diffs], Thu Jan 13 00:04:32 2000 UTC (24 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

suppress verbose messages from CWD and post-login if the first
character of the anonymous password is `-'.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Jan 12 22:39:29 2000 UTC (24 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.5: +2 -2 lines
Diff to previous 1.5 (colored)

* add ftpd.conf directive `portrange class min max', which allows specification
  of the port range used by passive connections. based on work in [bin/9158]
  from Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
* change the way global variables are defined and extern-ed to be more
  consistent.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jan 9 10:08:45 2000 UTC (24 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

* new ftpd.conf directive:
	template class [refclass]
  following directives for refclass will apply to class as well.
  this makes setting up a `template' class with many default settings
  easy, whilst allowing for class-specific overrides
* prevent crash when the optional limitfile wasn't given to limit
* document count_users()
* document default setting of limit in ftpd.conf(5)
* crank version

Revision 1.4 / (download) - annotate - [select for diffs], Sat Jan 8 11:09:56 2000 UTC (24 years, 1 month ago) by lukem
Branch: MAIN
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored)

features:
* add connection limits (`limit' keyword in ftpd.conf)
* move initialisation of curclass from parse_conf() to new function
  init_curclass()
* implement count_users(), which determines the number of users in a given
  class. a file - /var/run/ftpd.pids-<class> - is used to store a list
  of pids in use (effectively an array of pid_t's), and its size is reduced
  as necessary.
* new % modifiers in format_file:
	%c	class
	%M	maximum connection count
	%N	current connection count
* always end_login()s, even for refused connections

bugs fixed:
* remove \n from %T output
* fix some inconsistencies in the man pages
* ensure that both `ftp' *and* `anonymous' are allowed in ftpusers.
  (this was accidently broken in a recent commit to be ``or'' not ``and'')
* use MAXPATHLEN not MAXPATHLEN+1
* crank copyright date on modified files
* crank version

Revision 1.3.2.2 / (download) - annotate - [select for diffs], Mon Dec 27 18:30:13 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.3.2.1: +40 -0 lines
Diff to previous 1.3.2.1 (colored) to branchpoint 1.3 (colored) next main 1.4 (colored)

Pull up to last week's -current.

Revision 1.3.2.1, Tue Dec 21 12:57:45 1999 UTC (24 years, 2 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.3: +0 -40 lines
FILE REMOVED

file version.h was added on branch wrstuden-devbsize on 1999-12-27 18:30:13 +0000

Revision 1.3 / (download) - annotate - [select for diffs], Tue Dec 21 12:57:45 1999 UTC (24 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221
Branch point for: wrstuden-devbsize
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

crank version

Revision 1.2 / (download) - annotate - [select for diffs], Sun Dec 19 00:09:31 1999 UTC (24 years, 2 months ago) by lukem
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

* add back support for `-h hostname'; it still may be useful to override
  the name advertised to the client, even if ftpd can determine it from
  the ip address that ftpd is bound to. requested by mrg.
* remove -4/-6; they were effectively no-ops since itojun's change in 1.75.
* crank version

Revision 1.1 / (download) - annotate - [select for diffs], Sat Dec 18 05:51:35 1999 UTC (24 years, 2 months ago) by lukem
Branch: MAIN

* move version to separate header file
* use .Dv and .Tn in the man pages as appropriate
* KNF a bit

The following were inspired by similar changes in openbsd, but may
have additional improvements by me:
* add more check_login tests to the parser rules
* nuke a few memory leaks in the parser rules
* clear passwords before free()ing them, for safety
* don't display \r\n in setproctitle() output
* add support for -U, which enables managing /var/run/utmp entries for
  connections. solves [bin/2217] by Jason Downs <downsj@teeny.org>
* fix oob handling for STAT command
* use SIG_ERR instead of -1

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>