CVS log for src/libexec/ftpd/ftpd.c
Up to [cvs.NetBSD.org] / src / libexec / ftpd
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.203.6.5: download - view: text, markup, annotated - select for diffs
Tue Oct 3 10:12:11 2023 UTC (14 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE
Diff to: previous 1.203.6.4: preferred, colored; branchpoint 1.203: preferred, colored; next MAIN 1.204: preferred, colored
Changes since revision 1.203.6.4: +6 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1906):
libexec/ftpd/ftpd.c: revision 1.208
pam_set_item PAM_SOCKADDR expects sockaddr_storage structure
Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.
Revision 1.203.6.4: download - view: text, markup, annotated - select for diffs
Tue Oct 3 10:07:44 2023 UTC (14 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.203.6.3: preferred, colored; branchpoint 1.203: preferred, colored
Changes since revision 1.203.6.3: +37 -25
lines
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.203.6.3: download - view: text, markup, annotated - select for diffs
Tue Oct 3 10:05:06 2023 UTC (14 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.203.6.2: preferred, colored; branchpoint 1.203: preferred, colored
Changes since revision 1.203.6.2: +12 -9
lines
Pull up following revision(s) (requested by lukem in ticket #1902):
libexec/ftpd/ftpd.c: revision 1.206
Treat failed chdir/chroot for guest and chroot accounts as fatal.
Also treat failed set{e,}(u,g}id calls as fatal.
Addresses CVE-2020-7468, via FreeBSD.
Revision 1.203.6.2: download - view: text, markup, annotated - select for diffs
Tue Oct 3 10:03:24 2023 UTC (14 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.203.6.1: preferred, colored; branchpoint 1.203: preferred, colored
Changes since revision 1.203.6.1: +3 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1901):
libexec/ftpd/extern.h: revision 1.65
libexec/ftpd/ftpd.c: revision 1.205
bump sizes
Revision 1.203.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 3 09:54:24 2023 UTC (14 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +10 -4
lines
Pull up following revision(s) (requested by lukem in ticket #1900):
libexec/ftpd/ftpd.8: revision 1.87
libexec/ftpd/ftpd.c: revision 1.204
Add -f option to ftpd to stay in foreground with -D.
From nia in PR bin/53221.
Revision 1.204.4.4: download - view: text, markup, annotated - select for diffs
Mon Oct 2 17:25:54 2023 UTC (14 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE
Diff to: previous 1.204.4.3: preferred, colored; branchpoint 1.204: preferred, colored; next MAIN 1.205: preferred, colored
Changes since revision 1.204.4.3: +6 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1742):
libexec/ftpd/ftpd.c: revision 1.208
pam_set_item PAM_SOCKADDR expects sockaddr_storage structure
Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.
Revision 1.206.2.2: download - view: text, markup, annotated - select for diffs
Mon Oct 2 17:24:44 2023 UTC (14 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1
Diff to: previous 1.206.2.1: preferred, colored; branchpoint 1.206: preferred, colored; next MAIN 1.207: preferred, colored
Changes since revision 1.206.2.1: +6 -3
lines
Pull up following revision(s) (requested by lukem in ticket #389):
libexec/ftpd/ftpd.c: revision 1.208
pam_set_item PAM_SOCKADDR expects sockaddr_storage structure
Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.
Revision 1.204.4.3: download - view: text, markup, annotated - select for diffs
Mon Oct 2 17:13:33 2023 UTC (14 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.204.4.2: preferred, colored; branchpoint 1.204: preferred, colored
Changes since revision 1.204.4.2: +37 -25
lines
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.204.4.2: download - view: text, markup, annotated - select for diffs
Mon Oct 2 17:11:21 2023 UTC (14 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.204.4.1: preferred, colored; branchpoint 1.204: preferred, colored
Changes since revision 1.204.4.1: +12 -9
lines
Pull up following revision(s) (requested by lukem in ticket #1738):
libexec/ftpd/ftpd.c: revision 1.206
Treat failed chdir/chroot for guest and chroot accounts as fatal.
Also treat failed set{e,}(u,g}id calls as fatal.
Addresses CVE-2020-7468, via FreeBSD.
Revision 1.204.4.1: download - view: text, markup, annotated - select for diffs
Mon Oct 2 17:09:41 2023 UTC (14 months ago) by martin
Branches: netbsd-9
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +3 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1737):
libexec/ftpd/extern.h: revision 1.65
libexec/ftpd/ftpd.c: revision 1.205
bump sizes
Revision 1.206.2.1: download - view: text, markup, annotated - select for diffs
Mon Oct 2 13:45:42 2023 UTC (14 months ago) by martin
Branches: netbsd-10
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +37 -25
lines
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.208: download - view: text, markup, annotated - select for diffs
Sat Sep 30 18:06:24 2023 UTC (14 months ago) by shm
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
HEAD
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +6 -3
lines
pam_set_item PAM_SOCKADDR expects sockaddr_storage structure
Instead, internal struct sockinet was used. Because it's length is shorter
than sockaddr_storage, libpam was copying also memory outside of sockinet
struct.
Revision 1.207: download - view: text, markup, annotated - select for diffs
Sat Sep 2 12:16:29 2023 UTC (15 months ago) by lukem
Branches: MAIN
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +37 -25
lines
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.206: download - view: text, markup, annotated - select for diffs
Sat Jul 3 14:59:49 2021 UTC (3 years, 5 months ago) by christos
Branches: MAIN
CVS tags: netbsd-10-base
Branch point for: netbsd-10
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +12 -9
lines
Treat failed chdir/chroot for guest and chroot accounts as fatal.
Also treat failed set{e,}(u,g}id calls as fatal.
Addresses CVE-2020-7468, via FreeBSD.
Revision 1.204.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 13 08:03:17 2020 UTC (4 years, 7 months ago) by martin
Branches: phil-wifi
Diff to: previous 1.204: preferred, colored; next MAIN 1.205: preferred, colored
Changes since revision 1.204: +3 -3
lines
Mostly merge changes from HEAD upto 20200411
Revision 1.205: download - view: text, markup, annotated - select for diffs
Tue Oct 15 18:29:32 2019 UTC (5 years, 1 month ago) by christos
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +3 -3
lines
bump sizes
Revision 1.203.12.1: download - view: text, markup, annotated - select for diffs
Wed May 2 07:20:01 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.203: preferred, colored; next MAIN 1.204: preferred, colored
Changes since revision 1.203: +10 -4
lines
Synch with HEAD
Revision 1.204: download - view: text, markup, annotated - select for diffs
Sat Apr 28 13:38:00 2018 UTC (6 years, 7 months ago) by riastradh
Branches: MAIN
CVS tags: phil-wifi-base,
phil-wifi-20190609,
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,
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
Branch point for: phil-wifi,
netbsd-9
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +10 -4
lines
Add -f option to ftpd to stay in foreground with -D.
From nia in PR bin/53221.
Revision 1.202.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 26 03:24:15 2016 UTC (8 years, 4 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.202: preferred, colored; next MAIN 1.203: preferred, colored
Changes since revision 1.202: +4 -3
lines
Sync with HEAD
Revision 1.203: download - view: text, markup, annotated - select for diffs
Tue Jul 19 21:25:38 2016 UTC (8 years, 4 months ago) by shm
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
pgoyette-compat-base,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315,
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,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
localcount-20160914,
bouyer-socketcan-base1,
bouyer-socketcan-base,
bouyer-socketcan
Branch point for: pgoyette-compat,
netbsd-8
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +4 -3
lines
CID 603440: ensure that closing socket exists
Revision 1.202: download - view: text, markup, annotated - select for diffs
Mon Aug 10 07:32:49 2015 UTC (9 years, 3 months ago) by shm
Branches: MAIN
CVS tags: pgoyette-localcount-base
Branch point for: pgoyette-localcount
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +8 -4
lines
Fix directory stream leaks
Revision 1.200.4.1: download - view: text, markup, annotated - select for diffs
Thu Apr 30 06:07:34 2015 UTC (9 years, 7 months ago) by riz
Branches: netbsd-7
CVS tags: netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
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
Diff to: previous 1.200: preferred, colored; next MAIN 1.201: preferred, colored
Changes since revision 1.200: +8 -2
lines
Pull up blacklistd(8), requested by christos in ticket #711:
crypto/external/bsd/openssh/dist/moduli-gen/Makefile up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli-gen.sh up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1024 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.1536 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.2048 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.3072 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.4096 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.6144 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.7680 up to 1.1.1.1
crypto/external/bsd/openssh/dist/moduli-gen/moduli.8192 up to 1.1.1.1
crypto/external/bsd/openssh/dist/bcrypt_pbkdf.c up to 1.2
crypto/external/bsd/openssh/dist/kexc25519.c up to 1.3
crypto/external/bsd/openssh/dist/smult_curve25519_ref.c up to 1.3
crypto/external/bsd/openssh/dist/bitmap.c up to 1.2 plus patch
crypto/external/bsd/openssh/dist/PROTOCOL.chacha20poly1305 up to 1.1.1.1
crypto/external/bsd/openssh/dist/PROTOCOL.key up to 1.1.1.1
crypto/external/bsd/openssh/dist/blf.h up to 1.1
crypto/external/bsd/openssh/dist/blocks.c up to 1.3
crypto/external/bsd/openssh/dist/blowfish.c up to 1.2
crypto/external/bsd/openssh/dist/chacha.c up to 1.3
crypto/external/bsd/openssh/dist/chacha.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-aesctr.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/cipher-aesctr.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/cipher-chachapoly.c up to 1.3
crypto/external/bsd/openssh/dist/cipher-chachapoly.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/crypto_api.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/digest-libc.c up to 1.3
crypto/external/bsd/openssh/dist/digest-openssl.c up to 1.3
crypto/external/bsd/openssh/dist/digest.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.c up to 1.3
crypto/external/bsd/openssh/dist/fe25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ge25519.c up to 1.3
crypto/external/bsd/openssh/dist/ge25519.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/ge25519_base.data up to 1.1.1.1
crypto/external/bsd/openssh/dist/hash.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.c up to 1.3
crypto/external/bsd/openssh/dist/hmac.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/kexc25519c.c up to 1.3
crypto/external/bsd/openssh/dist/kexc25519s.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.c up to 1.3
crypto/external/bsd/openssh/dist/poly1305.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/rijndael.c up to 1.1.1.2
crypto/external/bsd/openssh/dist/rijndael.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/sc25519.c up to 1.3
crypto/external/bsd/openssh/dist/sc25519.h up to 1.1.1.1
crypto/external/bsd/openssh/dist/ssh-ed25519.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-basic.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-getput-crypto.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf-misc.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.c up to 1.3
crypto/external/bsd/openssh/dist/sshbuf.h up to 1.4
crypto/external/bsd/openssh/dist/ssherr.c up to 1.3
crypto/external/bsd/openssh/dist/ssherr.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/sshkey.c up to 1.3
crypto/external/bsd/openssh/dist/sshkey.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/verify.c up to 1.3
crypto/external/bsd/openssh/dist/opacket.c up to 1.2
crypto/external/bsd/openssh/dist/umac128.c up to 1.1
crypto/external/bsd/openssh/dist/pfilter.c up to 1.2
crypto/external/bsd/openssh/dist/pfilter.h up to 1.1
crypto/external/bsd/openssh/dist/bitmap.h up to 1.2
crypto/external/bsd/openssh/dist/opacket.h up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.c up to 1.2
crypto/external/bsd/openssh/dist/ssh_api.h up to 1.2
crypto/external/bsd/openssh/dist/auth2-jpake.c delete
crypto/external/bsd/openssh/dist/compress.c delete
crypto/external/bsd/openssh/dist/compress.h delete
crypto/external/bsd/openssh/dist/jpake.c delete
crypto/external/bsd/openssh/dist/jpake.h delete
crypto/external/bsd/openssh/dist/schnorr.c delete
crypto/external/bsd/openssh/dist/schnorr.h delete
crypto/external/bsd/openssh/dist/strtonum.c 1.1
crypto/external/bsd/openssh/Makefile.inc up to 1.8
crypto/external/bsd/openssh/bin/Makefile.inc up to 1.3
crypto/external/bsd/openssh/bin/ssh-keyscan/Makefile up to 1.2
crypto/external/bsd/openssh/bin/sshd/Makefile up to 1.12
crypto/external/bsd/openssh/dist/PROTOCOL up to 1.5
crypto/external/bsd/openssh/dist/PROTOCOL.krl up to 1.1.1.2
crypto/external/bsd/openssh/dist/addrmatch.c up to 1.8
crypto/external/bsd/openssh/dist/atomicio.c up to 1.6
crypto/external/bsd/openssh/dist/auth-bsdauth.c up to 1.4
crypto/external/bsd/openssh/dist/auth-chall.c up to 1.6
crypto/external/bsd/openssh/dist/auth-krb5.c up to 1.7
crypto/external/bsd/openssh/dist/auth-options.c up to 1.9
crypto/external/bsd/openssh/dist/auth-options.h up to 1.6
crypto/external/bsd/openssh/dist/auth-passwd.c up to 1.4
crypto/external/bsd/openssh/dist/auth-rh-rsa.c up to 1.6
crypto/external/bsd/openssh/dist/auth-rhosts.c up to 1.5
crypto/external/bsd/openssh/dist/auth-rsa.c up to 1.10
crypto/external/bsd/openssh/dist/auth.c up to 1.12
crypto/external/bsd/openssh/dist/auth.h up to 1.10
crypto/external/bsd/openssh/dist/auth1.c up to 1.11
crypto/external/bsd/openssh/dist/auth2-chall.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-gss.c up to 1.8
crypto/external/bsd/openssh/dist/auth2-hostbased.c up to 1.7
crypto/external/bsd/openssh/dist/auth2-kbdint.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-krb5.c up to 1.4
crypto/external/bsd/openssh/dist/auth2-none.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-passwd.c up to 1.5
crypto/external/bsd/openssh/dist/auth2-pubkey.c up to 1.11
crypto/external/bsd/openssh/dist/auth2.c up to 1.11
crypto/external/bsd/openssh/dist/authfd.c up to 1.8
crypto/external/bsd/openssh/dist/authfd.h up to 1.5
crypto/external/bsd/openssh/dist/authfile.c up to 1.10
crypto/external/bsd/openssh/dist/authfile.h up to 1.6
crypto/external/bsd/openssh/dist/bufaux.c up to 1.7
crypto/external/bsd/openssh/dist/bufbn.c up to 1.5
crypto/external/bsd/openssh/dist/bufec.c up to 1.5
crypto/external/bsd/openssh/dist/buffer.c up to 1.6
crypto/external/bsd/openssh/dist/buffer.h up to 1.7
crypto/external/bsd/openssh/dist/canohost.c up to 1.8
crypto/external/bsd/openssh/dist/channels.c up to 1.13
crypto/external/bsd/openssh/dist/channels.h up to 1.10
crypto/external/bsd/openssh/dist/cipher-3des1.c up to 1.7
crypto/external/bsd/openssh/dist/cipher-bf1.c up to 1.6
crypto/external/bsd/openssh/dist/cipher.c up to 1.7
crypto/external/bsd/openssh/dist/cipher.h up to 1.7
crypto/external/bsd/openssh/dist/clientloop.c up to 1.13
crypto/external/bsd/openssh/dist/compat.c up to 1.9
crypto/external/bsd/openssh/dist/compat.h up to 1.6
crypto/external/bsd/openssh/dist/deattack.c up to 1.4
crypto/external/bsd/openssh/dist/deattack.h up to 1.4
crypto/external/bsd/openssh/dist/dh.c up to 1.8
crypto/external/bsd/openssh/dist/dh.h up to 1.4
crypto/external/bsd/openssh/dist/dispatch.c up to 1.5
crypto/external/bsd/openssh/dist/dispatch.h up to 1.4
crypto/external/bsd/openssh/dist/dns.c up to 1.11
crypto/external/bsd/openssh/dist/dns.h up to 1.6
crypto/external/bsd/openssh/dist/groupaccess.c up to 1.5
crypto/external/bsd/openssh/dist/gss-genr.c up to 1.7
crypto/external/bsd/openssh/dist/gss-serv-krb5.c up to 1.8
crypto/external/bsd/openssh/dist/gss-serv.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.c up to 1.7
crypto/external/bsd/openssh/dist/hostfile.h up to 1.7
crypto/external/bsd/openssh/dist/includes.h up to 1.4
crypto/external/bsd/openssh/dist/kex.c up to 1.10
crypto/external/bsd/openssh/dist/kex.h up to 1.9
crypto/external/bsd/openssh/dist/kexdh.c up to 1.4
crypto/external/bsd/openssh/dist/kexdhc.c up to 1.6
crypto/external/bsd/openssh/dist/kexdhs.c up to 1.8
crypto/external/bsd/openssh/dist/kexecdh.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhc.c up to 1.5
crypto/external/bsd/openssh/dist/kexecdhs.c up to 1.5
crypto/external/bsd/openssh/dist/kexgex.c up to 1.4
crypto/external/bsd/openssh/dist/kexgexc.c up to 1.6
crypto/external/bsd/openssh/dist/kexgexs.c up to 1.8
crypto/external/bsd/openssh/dist/key.c up to 1.16
crypto/external/bsd/openssh/dist/key.h up to 1.9
crypto/external/bsd/openssh/dist/krl.c up to 1.5
crypto/external/bsd/openssh/dist/krl.h up to 1.1.1.2
crypto/external/bsd/openssh/dist/mac.c up to 1.11
crypto/external/bsd/openssh/dist/mac.h up to 1.5
crypto/external/bsd/openssh/dist/match.c up to 1.5
crypto/external/bsd/openssh/dist/misc.c up to 1.10
crypto/external/bsd/openssh/dist/misc.h up to 1.9 plus patch
crypto/external/bsd/openssh/dist/moduli.c up to 1.8
crypto/external/bsd/openssh/dist/monitor.c up to 1.14
crypto/external/bsd/openssh/dist/monitor.h up to 1.7
crypto/external/bsd/openssh/dist/monitor_fdpass.c up to 1.5
crypto/external/bsd/openssh/dist/monitor_mm.c up to 1.6
crypto/external/bsd/openssh/dist/monitor_mm.h up to 1.4
crypto/external/bsd/openssh/dist/monitor_wrap.c up to 1.11
crypto/external/bsd/openssh/dist/monitor_wrap.h up to 1.8
crypto/external/bsd/openssh/dist/msg.c up to 1.4
crypto/external/bsd/openssh/dist/msg.h up to 1.4
crypto/external/bsd/openssh/dist/mux.c up to 1.11
crypto/external/bsd/openssh/dist/myproposal.h up to 1.10
crypto/external/bsd/openssh/dist/namespace.h up to 1.5
crypto/external/bsd/openssh/dist/packet.c up to 1.18
crypto/external/bsd/openssh/dist/packet.h up to 1.11
crypto/external/bsd/openssh/dist/pathnames.h up to 1.9
crypto/external/bsd/openssh/dist/pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/progressmeter.c up to 1.7
crypto/external/bsd/openssh/dist/progressmeter.h up to 1.4
crypto/external/bsd/openssh/dist/reallocarray.c new
crypto/external/bsd/openssh/dist/readconf.c up to 1.13
crypto/external/bsd/openssh/dist/readconf.h up to 1.12
crypto/external/bsd/openssh/dist/readpass.c up to 1.6
crypto/external/bsd/openssh/dist/roaming_client.c up to 1.7
crypto/external/bsd/openssh/dist/roaming_common.c up to 1.9
crypto/external/bsd/openssh/dist/roaming_dummy.c up to 1.4
crypto/external/bsd/openssh/dist/rsa.c up to 1.5
crypto/external/bsd/openssh/dist/rsa.h up to 1.4
crypto/external/bsd/openssh/dist/sandbox-systrace.c up to 1.1.1.5
crypto/external/bsd/openssh/dist/scp.1 up to 1.9
crypto/external/bsd/openssh/dist/scp.c up to 1.11
crypto/external/bsd/openssh/dist/servconf.c up to 1.17
crypto/external/bsd/openssh/dist/servconf.h up to 1.11
crypto/external/bsd/openssh/dist/serverloop.c up to 1.12
crypto/external/bsd/openssh/dist/session.c up to 1.14
crypto/external/bsd/openssh/dist/session.h up to 1.4
crypto/external/bsd/openssh/dist/sftp-client.c up to 1.13
crypto/external/bsd/openssh/dist/sftp-client.h up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.c up to 1.7
crypto/external/bsd/openssh/dist/sftp-common.h up to 1.5
crypto/external/bsd/openssh/dist/sftp-glob.c up to 1.8
crypto/external/bsd/openssh/dist/sftp-server.8 up to 1.9
crypto/external/bsd/openssh/dist/sftp-server.c up to 1.11
crypto/external/bsd/openssh/dist/sftp.1 up to 1.11
crypto/external/bsd/openssh/dist/sftp.c up to 1.15
crypto/external/bsd/openssh/dist/ssh-add.1 up to 1.9
crypto/external/bsd/openssh/dist/ssh-add.c up to 1.10
crypto/external/bsd/openssh/dist/ssh-agent.1 up to 1.8
crypto/external/bsd/openssh/dist/ssh-agent.c up to 1.14
crypto/external/bsd/openssh/dist/ssh-dss.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-ecdsa.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-gss.h up to 1.5
crypto/external/bsd/openssh/dist/ssh-keygen.1 up to 1.13
crypto/external/bsd/openssh/dist/ssh-keygen.c up to 1.16
crypto/external/bsd/openssh/dist/ssh-keyscan.1 up to 1.10
crypto/external/bsd/openssh/dist/ssh-keyscan.c up to 1.13
crypto/external/bsd/openssh/dist/ssh-keysign.8 up to 1.9
crypto/external/bsd/openssh/dist/ssh-keysign.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11-client.c up to 1.6
crypto/external/bsd/openssh/dist/ssh-pkcs11-helper.c up to 1.8
crypto/external/bsd/openssh/dist/ssh-pkcs11.c up to 1.7
crypto/external/bsd/openssh/dist/ssh-pkcs11.h up to 1.4
crypto/external/bsd/openssh/dist/ssh-rsa.c up to 1.7
crypto/external/bsd/openssh/dist/ssh.1 up to 1.14
crypto/external/bsd/openssh/dist/ssh.c up to 1.16
crypto/external/bsd/openssh/dist/ssh2.h up to 1.6
crypto/external/bsd/openssh/dist/ssh_config up to 1.8
crypto/external/bsd/openssh/dist/ssh_config.5 up to 1.13
crypto/external/bsd/openssh/dist/sshconnect.c up to 1.11
crypto/external/bsd/openssh/dist/sshconnect.h up to 1.6
crypto/external/bsd/openssh/dist/sshconnect1.c up to 1.6
crypto/external/bsd/openssh/dist/sshconnect2.c up to 1.19
crypto/external/bsd/openssh/dist/sshd.8 up to 1.13
crypto/external/bsd/openssh/dist/sshd.c up to 1.18
crypto/external/bsd/openssh/dist/sshd_config up to 1.13
crypto/external/bsd/openssh/dist/sshd_config.5 up to 1.17
crypto/external/bsd/openssh/dist/sshlogin.c up to 1.6
crypto/external/bsd/openssh/dist/sshpty.c up to 1.4
crypto/external/bsd/openssh/dist/uidswap.c up to 1.4
crypto/external/bsd/openssh/dist/umac.c up to 1.9
crypto/external/bsd/openssh/dist/version.h up to 1.14
crypto/external/bsd/openssh/dist/xmalloc.c up to 1.5
crypto/external/bsd/openssh/lib/Makefile up to 1.17 plus patch
crypto/external/bsd/openssh/lib/shlib_version up to 1.13
distrib/sets/lists/base/ad.aarch64 patch
distrib/sets/lists/base/ad.arm patch
distrib/sets/lists/base/ad.mips patch
distrib/sets/lists/base/ad.powerpc patch
distrib/sets/lists/base/md.amd64 patch
distrib/sets/lists/base/md.sparc64 patch
distrib/sets/lists/base/mi patch
distrib/sets/lists/base/shl.mi patch
distrib/sets/lists/comp/ad.aarch64 patch
distrib/sets/lists/comp/ad.arm patch
distrib/sets/lists/comp/ad.mips patch
distrib/sets/lists/comp/ad.powerpc patch
distrib/sets/lists/comp/md.amd64 patch
distrib/sets/lists/comp/md.sparc64 patch
distrib/sets/lists/comp/mi patch
distrib/sets/lists/comp/shl.mi patch
distrib/sets/lists/debug/ad.aarch64 patch
distrib/sets/lists/debug/ad.arm patch
distrib/sets/lists/debug/ad.mips patch
distrib/sets/lists/debug/ad.powerpc patch
distrib/sets/lists/debug/md.amd64 patch
distrib/sets/lists/debug/md.sparc64 patch
distrib/sets/lists/debug/shl.mi patch
distrib/sets/lists/etc/mi patch
distrib/sets/lists/man/mi patch
etc/defaults/rc.conf 1.130
etc/mtree/NetBSD.dist.base 1.142
external/bsd/Makefile up to 1.48
external/bsd/blacklist/bin/Makefile up to 1.11 plus patch
external/bsd/blacklist/bin/blacklistctl.8 up to 1.6
external/bsd/blacklist/bin/blacklistctl.c up to 1.17
external/bsd/blacklist/bin/blacklistd.8 up to 1.10
external/bsd/blacklist/bin/blacklistd.c up to 1.32
external/bsd/blacklist/bin/blacklistd.conf.5 up to 1.2
external/bsd/blacklist/bin/conf.c up to 1.18
external/bsd/blacklist/bin/conf.h up to 1.6
external/bsd/blacklist/bin/internal.c up to 1.5
external/bsd/blacklist/bin/internal.h up to 1.12
external/bsd/blacklist/bin/run.c up to 1.12
external/bsd/blacklist/bin/run.h up to 1.5
external/bsd/blacklist/bin/state.c up to 1.15
external/bsd/blacklist/bin/state.h up to 1.5
external/bsd/blacklist/bin/support.c up to 1.6
external/bsd/blacklist/bin/support.h up to 1.5
external/bsd/blacklist/etc/rc.d/Makefile up to 1.1
external/bsd/blacklist/etc/rc.d/blacklistd up to 1.1
external/bsd/blacklist/etc/Makefile up to 1.3
external/bsd/blacklist/etc/blacklistd.conf up to 1.3
external/bsd/blacklist/etc/npf.conf up to 1.1
external/bsd/blacklist/Makefile up to 1.2
external/bsd/blacklist/Makefile.inc up to 1.3
external/bsd/blacklist/README up to 1.7
external/bsd/blacklist/TODO up to 1.7
external/bsd/blacklist/diff/ftpd.diff up to 1.1
external/bsd/blacklist/diff/named.diff up to 1.6
external/bsd/blacklist/diff/ssh.diff up to 1.6
external/bsd/blacklist/include/Makefile up to 1.1
external/bsd/blacklist/include/bl.h up to 1.12
external/bsd/blacklist/include/blacklist.h up to 1.3
external/bsd/blacklist/include/config.h new
external/bsd/blacklist/lib/Makefile up to 1.3
external/bsd/blacklist/lib/bl.c up to 1.24
external/bsd/blacklist/lib/blacklist.c up to 1.5
external/bsd/blacklist/lib/libblacklist.3 up to 1.3
external/bsd/blacklist/lib/shlib_version up to 1.1
external/bsd/blacklist/libexec/Makefile up to 1.1
external/bsd/blacklist/libexec/blacklistd-helper up to 1.4
external/bsd/blacklist/port/m4/.cvsignore up to 1.1
external/bsd/blacklist/port/Makefile.am up to 1.4
external/bsd/blacklist/port/_strtoi.h up to 1.1
external/bsd/blacklist/port/clock_gettime.c up to 1.2
external/bsd/blacklist/port/configure.ac up to 1.7
external/bsd/blacklist/port/fgetln.c up to 1.1
external/bsd/blacklist/port/fparseln.c up to 1.1
external/bsd/blacklist/port/getprogname.c up to 1.4
external/bsd/blacklist/port/pidfile.c up to 1.1
external/bsd/blacklist/port/popenve.c up to 1.2
external/bsd/blacklist/port/port.h up to 1.6
external/bsd/blacklist/port/sockaddr_snprintf.c up to 1.9
external/bsd/blacklist/port/strlcat.c up to 1.2
external/bsd/blacklist/port/strlcpy.c up to 1.2
external/bsd/blacklist/port/strtoi.c up to 1.3
external/bsd/blacklist/test/Makefile up to 1.2
external/bsd/blacklist/test/cltest.c up to 1.6
external/bsd/blacklist/test/srvtest.c up to 1.9
lib/libpam/modules/pam_ssh/pam_ssh.c up to 1.23
libexec/ftpd/pfilter.c up to 1.1
libexec/ftpd/pfilter.h up to 1.1
libexec/ftpd/Makefile up to 1.64
libexec/ftpd/ftpd.c up to 1.201
Add blacklistd(8), a daemon to block and release network ports
on demand to mitigate abuse, and related changes to system daemons
to support it.
[christos, ticket #711]
Revision 1.201: download - view: text, markup, annotated - select for diffs
Sun Jan 25 15:53:49 2015 UTC (9 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +8 -2
lines
blacklist hooks
Revision 1.198.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:02:22 2014 UTC (10 years, 3 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.198: preferred, colored; next MAIN 1.199: preferred, colored
Changes since revision 1.198: +4 -5
lines
Rebase to HEAD as of a few days ago.
Revision 1.197.2.2: download - view: text, markup, annotated - select for diffs
Thu May 22 11:37:13 2014 UTC (10 years, 6 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.197.2.1: preferred, colored; branchpoint 1.197: preferred, colored; next MAIN 1.198: preferred, colored
Changes since revision 1.197.2.1: +4 -5
lines
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.200: download - view: text, markup, annotated - select for diffs
Wed Jul 31 19:50:47 2013 UTC (11 years, 4 months ago) by christos
Branches: 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,
netbsd-7-base
Branch point for: netbsd-7
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +4 -4
lines
fstat returns -1 on error (Maxime Villard)
also while (1) -> for (;;)
Revision 1.199: download - view: text, markup, annotated - select for diffs
Wed Jul 3 14:16:01 2013 UTC (11 years, 5 months ago) by christos
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +2 -3
lines
remove unneeded initialization.
Revision 1.197.2.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 18:59:21 2012 UTC (12 years, 1 month ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +3 -3
lines
sync with head
Revision 1.198: download - view: text, markup, annotated - select for diffs
Tue Jun 19 06:06:34 2012 UTC (12 years, 5 months ago) by dholland
Branches: MAIN
CVS tags: yamt-pagecache-base8,
yamt-pagecache-base7,
yamt-pagecache-base6,
agc-symver-base,
agc-symver
Branch point for: tls-maxphys
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +3 -3
lines
Pass WARNS=5
Revision 1.197: download - view: text, markup, annotated - select for diffs
Fri Sep 16 16:13:17 2011 UTC (13 years, 2 months ago) by plunky
Branches: MAIN
CVS tags: 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
Branch point for: yamt-pagecache
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +3 -3
lines
NULL does not need a cast, here
Revision 1.196: download - view: text, markup, annotated - select for diffs
Sun Sep 4 23:16:41 2011 UTC (13 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +4 -3
lines
Reduce priority of syslog message if getpeername returns ENOTCONN.
PR bin/18934 by Greg A. Woods (with supplied fix).
Revision 1.195: download - view: text, markup, annotated - select for diffs
Mon Aug 29 20:41:06 2011 UTC (13 years, 3 months ago) by joerg
Branches: MAIN
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +5 -5
lines
Use __dead
Revision 1.194: download - view: text, markup, annotated - select for diffs
Mon Jul 13 19:05:40 2009 UTC (15 years, 4 months ago) by roy
Branches: MAIN
CVS tags: matt-premerge-20091211,
matt-mips64-premerge-20101231,
cherry-xenmp-base,
cherry-xenmp,
bouyer-quota2-nbase,
bouyer-quota2-base,
bouyer-quota2
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +4 -4
lines
Rename internal getline() function to get_line() so it does
conflict with the soon to be added getline(3) libc function.
Revision 1.191.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 19:18:37 2009 UTC (15 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.191: preferred, colored; next MAIN 1.192: preferred, colored
Changes since revision 1.191: +32 -28
lines
Sync with HEAD.
Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
Revision 1.193: download - view: text, markup, annotated - select for diffs
Sun Mar 15 07:48:36 2009 UTC (15 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: jym-xensuspend-nbase,
jym-xensuspend-base
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +24 -20
lines
Fix WARNS=4 issues (const & sign mismatches, etc)
Ensure various ftpd.conf values can't exceed their underlying types.
Revision 1.192: download - view: text, markup, annotated - select for diffs
Mon Mar 2 03:47:44 2009 UTC (15 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +10 -10
lines
Use LLF (et al) instead of "%lld" (et al).
Revision 1.191: download - view: text, markup, annotated - select for diffs
Thu Jan 8 18:47:49 2009 UTC (15 years, 10 months ago) by christos
Branches: MAIN
Branch point for: jym-xensuspend
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +26 -15
lines
PR/40339: Ed Ravin: make ftpd log both the hostname and numeric address.
Revision 1.190: download - view: text, markup, annotated - select for diffs
Mon Dec 29 00:33:34 2008 UTC (15 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +11 -9
lines
fix for 64 bit time_t and dev_t
Revision 1.189: download - view: text, markup, annotated - select for diffs
Tue Oct 28 08:05:26 2008 UTC (16 years, 1 month ago) by lukem
Branches: MAIN
CVS tags: netbsd-5-base,
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,
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,
netbsd-5-0,
netbsd-5,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +7 -4
lines
Constify.
Rework an expression to make it easier to conditionally compile.
Revision 1.184.2.3: download - view: text, markup, annotated - select for diffs
Wed Sep 24 16:35:51 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.184.2.2: preferred, colored; branchpoint 1.184: preferred, colored; next MAIN 1.185: preferred, colored
Changes since revision 1.184.2.2: +69 -20
lines
Merge in changes between wrstuden-revivesa-base-2 and
wrstuden-revivesa-base-3.
Revision 1.164.2.8: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:28:41 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.164.2.7: preferred, colored; branchpoint 1.164: preferred, colored; next MAIN 1.165: preferred, colored
Changes since revision 1.164.2.7: +9 -3
lines
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.164.2.1.2.7: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:28:40 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-0
Diff to: previous 1.164.2.1.2.6: preferred, colored; branchpoint 1.164.2.1: preferred, colored; next MAIN 1.164.2.2: preferred, colored
Changes since revision 1.164.2.1.2.6: +9 -3
lines
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.164.2.1.4.7: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:28:23 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-1
Diff to: previous 1.164.2.1.4.6: preferred, colored; branchpoint 1.164.2.1: preferred, colored; next MAIN 1.164.2.2: preferred, colored
Changes since revision 1.164.2.1.4.6: +9 -3
lines
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.164.2.1.4.6: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:22:44 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-1
Diff to: previous 1.164.2.1.4.5: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.4.5: +13 -2
lines
Pull up following revision(s) (requested by lukem in ticket #1963):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
Revision 1.164.2.1.2.6: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:22:38 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-0
Diff to: previous 1.164.2.1.2.5: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.2.5: +13 -2
lines
Pull up following revision(s) (requested by lukem in ticket #1963):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
Revision 1.164.2.7: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:22:25 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.164.2.6: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.6: +13 -2
lines
Pull up following revision(s) (requested by lukem in ticket #1963):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
Revision 1.164.2.1.2.5: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:21:03 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-0
Diff to: previous 1.164.2.1.2.4: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.2.4: +2 -4
lines
Pull up following revision(s) (requested by lukem in ticket #1962):
libexec/ftpd/ftpd.c: revision 1.175
Remove unreachable code (res could never be NULL here).
Fixes Coverity CID 712.
Ok by lukem@.
Revision 1.164.2.6: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:21:00 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.164.2.5: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.5: +2 -4
lines
Pull up following revision(s) (requested by lukem in ticket #1962):
libexec/ftpd/ftpd.c: revision 1.175
Remove unreachable code (res could never be NULL here).
Fixes Coverity CID 712.
Ok by lukem@.
Revision 1.164.2.1.4.5: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:20:50 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-1
Diff to: previous 1.164.2.1.4.4: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.4.4: +2 -4
lines
Pull up following revision(s) (requested by lukem in ticket #1962):
libexec/ftpd/ftpd.c: revision 1.175
Remove unreachable code (res could never be NULL here).
Fixes Coverity CID 712.
Ok by lukem@.
Revision 1.164.2.1.4.4: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:16:54 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-1
Diff to: previous 1.164.2.1.4.3: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.4.3: +3 -2
lines
Pull up following revision(s) (requested by lukem in ticket #1961):
libexec/ftpd/ftpd.c: revision 1.174
Set file to NULL after calling fclose().
Fixes Coverity CID 2669.
Ok by lukem@.
Revision 1.164.2.1.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:16:51 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-0
Diff to: previous 1.164.2.1.2.3: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.2.3: +3 -2
lines
Pull up following revision(s) (requested by lukem in ticket #1961):
libexec/ftpd/ftpd.c: revision 1.174
Set file to NULL after calling fclose().
Fixes Coverity CID 2669.
Ok by lukem@.
Revision 1.164.2.5: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:16:42 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.164.2.4: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.4: +3 -2
lines
Pull up following revision(s) (requested by lukem in ticket #1961):
libexec/ftpd/ftpd.c: revision 1.174
Set file to NULL after calling fclose().
Fixes Coverity CID 2669.
Ok by lukem@.
Revision 1.164.2.1.4.3: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:15:15 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-1
Diff to: previous 1.164.2.1.4.2: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.4.2: +4 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1960):
libexec/ftpd/ftpd.c: revision 1.173
Make sure that "su" is initialized before dereferencing it.
Fixes Coverity CID 1075.
Ok by lukem@.
Revision 1.164.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:15:12 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.164.2.3: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.3: +4 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1960):
libexec/ftpd/ftpd.c: revision 1.173
Make sure that "su" is initialized before dereferencing it.
Fixes Coverity CID 1075.
Ok by lukem@.
Revision 1.164.2.1.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:15:04 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-0
Diff to: previous 1.164.2.1.2.2: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.2.2: +4 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1960):
libexec/ftpd/ftpd.c: revision 1.173
Make sure that "su" is initialized before dereferencing it.
Fixes Coverity CID 1075.
Ok by lukem@.
Revision 1.164.2.1.4.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:13:48 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-1
Diff to: previous 1.164.2.1.4.1: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.4.1: +7 -7
lines
Pull up following revision(s) (requested by lukem in ticket #1959):
libexec/ftpd/ftpd.c: revision 1.170
NLST should return 450 instead of 550 upon error, per RFC 959.
Revision 1.164.2.1.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:13:44 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-0
Diff to: previous 1.164.2.1.2.1: preferred, colored; branchpoint 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1.2.1: +7 -7
lines
Pull up following revision(s) (requested by lukem in ticket #1959):
libexec/ftpd/ftpd.c: revision 1.170
NLST should return 450 instead of 550 upon error, per RFC 959.
Revision 1.164.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:13:36 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.164.2.2: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.2: +7 -7
lines
Pull up following revision(s) (requested by lukem in ticket #1959):
libexec/ftpd/ftpd.c: revision 1.170
NLST should return 450 instead of 550 upon error, per RFC 959.
Revision 1.164.2.1.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:12:15 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-1
Diff to: previous 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1: +4 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1958):
libexec/ftpd/ftpd.c: revision 1.169
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.164.2.1.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:12:08 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3-0
Diff to: previous 1.164.2.1: preferred, colored
Changes since revision 1.164.2.1: +4 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1958):
libexec/ftpd/ftpd.c: revision 1.169
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.164.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 19:11:43 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-3
Diff to: previous 1.164.2.1: preferred, colored; branchpoint 1.164: preferred, colored
Changes since revision 1.164.2.1: +4 -3
lines
Pull up following revision(s) (requested by lukem in ticket #1958):
libexec/ftpd/ftpd.c: revision 1.169
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.177.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 18 18:24:59 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.177.2.3: preferred, colored; branchpoint 1.177: preferred, colored; next MAIN 1.178: preferred, colored
Changes since revision 1.177.2.3: +22 -11
lines
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.177.6.4: download - view: text, markup, annotated - select for diffs
Thu Sep 18 18:24:39 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4-0
CVS tags: netbsd-4-0-1-RELEASE
Diff to: previous 1.177.6.3: preferred, colored; branchpoint 1.177: preferred, colored; next MAIN 1.178: preferred, colored
Changes since revision 1.177.6.3: +22 -11
lines
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.177.2.3: download - view: text, markup, annotated - select for diffs
Thu Sep 18 18:18:32 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.177.2.2: preferred, colored; branchpoint 1.177: preferred, colored
Changes since revision 1.177.2.2: +119 -33
lines
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.177.6.3: download - view: text, markup, annotated - select for diffs
Thu Sep 18 18:17:00 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4-0
Diff to: previous 1.177.6.2: preferred, colored; branchpoint 1.177: preferred, colored
Changes since revision 1.177.6.2: +119 -33
lines
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.177.6.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 18:13:12 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4-0
Diff to: previous 1.177.6.1: preferred, colored; branchpoint 1.177: preferred, colored
Changes since revision 1.177.6.1: +4 -5
lines
Pull up following revision(s) (requested by lukem in ticket #1200):
libexec/ftpd/ftpd.c: revision 1.182
Rename cred_t to ftpd_cred_t; the former causes a nameclash on Solaris.
Revision 1.177.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 18:12:57 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.177.2.1: preferred, colored; branchpoint 1.177: preferred, colored
Changes since revision 1.177.2.1: +4 -5
lines
Pull up following revision(s) (requested by lukem in ticket #1200):
libexec/ftpd/ftpd.c: revision 1.182
Rename cred_t to ftpd_cred_t; the former causes a nameclash on Solaris.
Revision 1.177.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 18:10:30 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +13 -2
lines
Pull up following revision(s) (requested by lukem in ticket #1199):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
Revision 1.177.6.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 18:09:21 2008 UTC (16 years, 2 months ago) by bouyer
Branches: netbsd-4-0
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +13 -2
lines
Pull up following revision(s) (requested by lukem in ticket #1199):
libexec/ftpd/ftpd.c: revision 1.179
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
Revision 1.184.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:39:17 2008 UTC (16 years, 2 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.184.2.1: preferred, colored; branchpoint 1.184: preferred, colored
Changes since revision 1.184.2.1: +4 -5
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.188: download - view: text, markup, annotated - select for diffs
Tue Sep 16 12:30:38 2008 UTC (16 years, 2 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-3,
matt-mips64-base2
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +49 -11
lines
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.187: download - view: text, markup, annotated - select for diffs
Sat Sep 13 03:30:35 2008 UTC (16 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +22 -11
lines
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.186: download - view: text, markup, annotated - select for diffs
Sun Jul 20 01:09:07 2008 UTC (16 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-revivesa-base-2
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +4 -5
lines
Remove the \n and tabs from the __COPYRIGHT() strings.
Revision 1.184.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 23 04:29:54 2008 UTC (16 years, 5 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +25 -16
lines
Sync w/ -current. 34 merge conflicts to follow.
Revision 1.183.2.2: download - view: text, markup, annotated - select for diffs
Tue Jun 17 09:13:39 2008 UTC (16 years, 5 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.183.2.1: preferred, colored; branchpoint 1.183: preferred, colored; next MAIN 1.184: preferred, colored
Changes since revision 1.183.2.1: +25 -16
lines
sync with head.
Revision 1.185: download - view: text, markup, annotated - select for diffs
Mon Jun 9 00:33:39 2008 UTC (16 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: yamt-pf42-base4,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +25 -16
lines
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.183.2.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:30:43 2008 UTC (16 years, 6 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +2 -9
lines
sync with head.
Revision 1.184: download - view: text, markup, annotated - select for diffs
Mon Apr 28 20:23:03 2008 UTC (16 years, 7 months ago) by martin
Branches: MAIN
CVS tags: yamt-pf42-base3,
yamt-pf42-base2,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +2 -9
lines
Remove clause 3 and 4 from TNF licenses
Revision 1.183: download - view: text, markup, annotated - select for diffs
Thu Mar 27 08:12:09 2008 UTC (16 years, 8 months ago) by lukem
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base
Branch point for: yamt-pf42
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +119 -33
lines
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.182.10.2: download - view: text, markup, annotated - select for diffs
Mon Jul 23 10:41:06 2007 UTC (17 years, 4 months ago) by lukem
Branches: matt-mips64
Diff to: previous 1.182.10.1: preferred, colored; branchpoint 1.182: preferred, colored; next MAIN 1.183: preferred, colored
Changes since revision 1.182.10.1: +3817 -0
lines
Rename cred_t to ftpd_cred_t; the former causes a nameclash on Solaris.
Revision 1.182.10.1
Mon Jul 23 10:41:05 2007 UTC (17 years, 4 months ago) by lukem
Branches: matt-mips64
FILE REMOVED
Changes since revision 1.182: +0 -3817
lines
file ftpd.c was added on branch matt-mips64 on 2007-07-23 10:41:06 +0000
Revision 1.182: download - view: text, markup, annotated - select for diffs
Mon Jul 23 10:41:05 2007 UTC (17 years, 4 months ago) by lukem
Branches: MAIN
CVS tags: matt-mips64-base,
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: matt-mips64
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +6 -7
lines
Rename cred_t to ftpd_cred_t; the former causes a nameclash on Solaris.
Revision 1.181: download - view: text, markup, annotated - select for diffs
Sun Jul 22 05:06:45 2007 UTC (17 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +8 -8
lines
Rename HAVE_SOCKADDR_SA_LEN to HAVE_STRUCT_SOCKADDR_SA_LEN.
Use defined(HAVE_foo) instead of just testing HAVE_foo.
Revision 1.180: download - view: text, markup, annotated - select for diffs
Sun Jun 10 20:24:31 2007 UTC (17 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +13 -6
lines
PR/36468: Andreas Wrede: ftpd(8) always logs hostnames. Add -n option to display
addresses.
Revision 1.179: download - view: text, markup, annotated - select for diffs
Sat Jan 20 17:26:32 2007 UTC (17 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +13 -2
lines
PR/35449: Shigeya Suzuki: ftpd does not register socket address into PAM +FIX
Revision 1.178: download - view: text, markup, annotated - select for diffs
Sun Dec 17 20:04:09 2006 UTC (17 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +21 -23
lines
fix volatile and initialization issues, from Anon Ymous
Revision 1.177: download - view: text, markup, annotated - select for diffs
Tue Sep 26 06:47:20 2006 UTC (18 years, 2 months ago) by lukem
Branches: 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
Branch point for: netbsd-4-0,
netbsd-4
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +4 -2
lines
Fix -ULOGIN_CAP compile.
Revision 1.176: download - view: text, markup, annotated - select for diffs
Tue May 9 20:18:06 2006 UTC (18 years, 7 months ago) by mrg
Branches: MAIN
CVS tags: abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +8 -6
lines
change (mostly) int to socklen_t. GCC 4 doesn't like that int and
socklen_t are different signness.
Revision 1.175: download - view: text, markup, annotated - select for diffs
Fri Mar 17 21:28:21 2006 UTC (18 years, 8 months ago) by peter
Branches: MAIN
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +2 -4
lines
Remove unreachable code (res could never be NULL here).
Fixes Coverity CID 712.
Ok by lukem@.
Revision 1.174: download - view: text, markup, annotated - select for diffs
Fri Mar 17 21:26:55 2006 UTC (18 years, 8 months ago) by peter
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +3 -2
lines
Set file to NULL after calling fclose().
Fixes Coverity CID 2669.
Ok by lukem@.
Revision 1.173: download - view: text, markup, annotated - select for diffs
Fri Mar 17 21:24:33 2006 UTC (18 years, 8 months ago) by peter
Branches: MAIN
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +4 -3
lines
Make sure that "su" is initialized before dereferencing it.
Fixes Coverity CID 1075.
Ok by lukem@.
Revision 1.172: download - view: text, markup, annotated - select for diffs
Sat Feb 25 02:28:55 2006 UTC (18 years, 9 months ago) by wiz
Branches: MAIN
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +3 -3
lines
Fix some typos.
Revision 1.171: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:20:14 2006 UTC (18 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +23 -23
lines
debug -> ftpd_debug
xstrdup -> ftpd_strdup
Revision 1.170: download - view: text, markup, annotated - select for diffs
Thu Nov 24 23:47:23 2005 UTC (19 years ago) by lukem
Branches: MAIN
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +7 -7
lines
NLST should return 450 instead of 550 upon error, per RFC 959.
Revision 1.169: download - view: text, markup, annotated - select for diffs
Mon Oct 3 00:02:25 2005 UTC (19 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +6 -5
lines
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.168: download - view: text, markup, annotated - select for diffs
Wed Aug 24 15:51:41 2005 UTC (19 years, 3 months ago) by ginsbach
Branches: MAIN
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +33 -6
lines
* 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.167: download - view: text, markup, annotated - select for diffs
Thu Aug 4 17:41:35 2005 UTC (19 years, 4 months ago) by peter
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +122 -4
lines
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.164.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 5 21:48:49 2005 UTC (19 years, 5 months ago) by tron
Branches: netbsd-3
CVS tags: 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
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +3 -3
lines
Pull up revision 1.165 (requested by lukem in ticket #538):
s/getpwnam/sgetpwnam/ Found by John Nemeth.
Revision 1.166: download - view: text, markup, annotated - select for diffs
Thu Jun 23 04:20:41 2005 UTC (19 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +20 -12
lines
cleanup utmp and utmpx support.
- make them symmetric
- add a function to open the wtmp file explicitly very early in the game
Revision 1.165: download - view: text, markup, annotated - select for diffs
Sun Apr 10 08:21:36 2005 UTC (19 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +3 -3
lines
s/getpwnam/sgetpwnam/ Found by John Nemeth.
Revision 1.164: download - view: text, markup, annotated - select for diffs
Sun Feb 20 01:45:17 2005 UTC (19 years, 9 months ago) by christos
Branches: MAIN
CVS tags: netbsd-3-base
Branch point for: netbsd-3
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +270 -4
lines
Add PAM and LOGIN_CAP support. Mostly from FreeBSD. If pam is defined,
then we don't fall back to other authentications even if PAM fails due
to a system error (e.g. configuration problem).
Revision 1.163: download - view: text, markup, annotated - select for diffs
Sat Dec 11 18:37:26 2004 UTC (19 years, 11 months ago) by christos
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +9 -9
lines
change _PATH_FOO to _NAME_FOO where FOO is not a path. I'll discuss with
luke what is the best way to fix this.
Revision 1.162: download - view: text, markup, annotated - select for diffs
Thu Dec 9 20:58:39 2004 UTC (20 years ago) by ginsbach
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +3 -3
lines
Fix inverted test for expired passwords. Mea culpa.
Revision 1.161: download - view: text, markup, annotated - select for diffs
Fri Nov 19 16:03:58 2004 UTC (20 years ago) by ginsbach
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +7 -5
lines
* 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.160: download - view: text, markup, annotated - select for diffs
Thu Nov 11 01:14:10 2004 UTC (20 years ago) by christos
Branches: MAIN
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +11 -7
lines
Don't write trash in ut_ss; either initialize it to 0, or put in the proper
information.
Revision 1.159: download - view: text, markup, annotated - select for diffs
Fri Nov 5 21:45:36 2004 UTC (20 years, 1 month ago) by dsl
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +4 -4
lines
Add (unsigned char) cast to ctype functions
Revision 1.138.2.3: download - view: text, markup, annotated - select for diffs
Tue Aug 31 01:35:38 2004 UTC (20 years, 3 months ago) by jmc
Branches: netbsd-1-6
Diff to: previous 1.138.2.2: preferred, colored; branchpoint 1.138: preferred, colored; next MAIN 1.139: preferred, colored
Changes since revision 1.138.2.2: +583 -207
lines
Pullup rev 1.139-1.158 (requested by he in ticket #1739)
Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
Revision 1.95.2.6: download - view: text, markup, annotated - select for diffs
Thu Aug 26 05:00:19 2004 UTC (20 years, 3 months ago) by jmc
Branches: netbsd-1-5
Diff to: previous 1.95.2.5: preferred, colored; branchpoint 1.95: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95.2.5: +778 -347
lines
Pullup rev 1.123-1.158 (requested by he in ticket #158)
Update to NetBSD ftpd 20040809. Fixes SA#2004-009.
Revision 1.157.2.1: download - view: text, markup, annotated - select for diffs
Thu Aug 12 20:44:30 2004 UTC (20 years, 3 months ago) by jmc
Branches: 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
Diff to: previous 1.157: preferred, colored; next MAIN 1.158: preferred, colored
Changes since revision 1.157: +143 -52
lines
Pullup rev 1.158 (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.158: download - view: text, markup, annotated - select for diffs
Mon Aug 9 12:56:47 2004 UTC (20 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +143 -52
lines
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.138.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 23 15:03:57 2004 UTC (20 years, 4 months ago) by tron
Branches: netbsd-1-6
Diff to: previous 1.138.2.1: preferred, colored; branchpoint 1.138: preferred, colored
Changes since revision 1.138.2.1: +7 -7
lines
Apply patch (requested by dbj in ticket 1724):
Fix problems when building the netbsd-1-6 branch with GCC 3.3.3.
Revision 1.157: download - view: text, markup, annotated - select for diffs
Wed Dec 10 01:18:56 2003 UTC (21 years ago) by lukem
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +23 -4
lines
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.156: download - view: text, markup, annotated - select for diffs
Thu Aug 7 09:46:39 2003 UTC (21 years, 4 months ago) by agc
Branches: MAIN
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +3 -7
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22284, verified by myself.
Revision 1.155: download - view: text, markup, annotated - select for diffs
Mon Jun 30 03:06:06 2003 UTC (21 years, 5 months ago) by tacha
Branches: MAIN
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +5 -5
lines
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.154: download - view: text, markup, annotated - select for diffs
Wed Feb 26 12:27:04 2003 UTC (21 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +36 -16
lines
Add '-L xferlogfile', to write xferlog entries there rather than syslog them.
Based on work from Dmitry Sivachenko.
Revision 1.153: download - view: text, markup, annotated - select for diffs
Mon Feb 24 19:26:49 2003 UTC (21 years, 9 months ago) by erh
Branches: MAIN
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +4 -3
lines
Fix uninitialized variable "notglob" in send_file_list() that was causing
transfers to fail due to an abort in free().
Revision 1.152: download - view: text, markup, annotated - select for diffs
Sun Feb 23 13:04:37 2003 UTC (21 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +6 -7
lines
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.151: download - view: text, markup, annotated - select for diffs
Wed Feb 19 18:26:48 2003 UTC (21 years, 9 months ago) by dsl
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +8 -3
lines
Stop ftpd changing inetd's 'logname'
Stop buffer overrun if {NGROUPS_MAX} is greater than the compile time
NGROUPS_MAX.
(approved by christos)
Revision 1.150: download - view: text, markup, annotated - select for diffs
Wed Jan 22 04:46:08 2003 UTC (21 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +31 -23
lines
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.149: download - view: text, markup, annotated - select for diffs
Wed Jan 22 04:33:35 2003 UTC (21 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +3 -4
lines
Fixes from Dmitry Sivachenko <demon@freebsd.org>:
- always set "curname" to something appropriate (even when logging is
not in effect).
- fix usage for "PORT" command
Revision 1.148: download - view: text, markup, annotated - select for diffs
Fri Dec 6 01:59:22 2002 UTC (22 years ago) by thorpej
Branches: MAIN
CVS tags: fvdl_fs64_base
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +7 -7
lines
Avoid conflict with reserved identifier "log".
Revision 1.147: download - view: text, markup, annotated - select for diffs
Fri Nov 29 14:40:00 2002 UTC (22 years ago) by lukem
Branches: MAIN
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +40 -15
lines
- 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.146: download - view: text, markup, annotated - select for diffs
Sat Nov 16 03:10:34 2002 UTC (22 years ago) by itojun
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +14 -7
lines
audit use of strto* - beware of ERANGE, as well as typecast on result.
Revision 1.145: download - view: text, markup, annotated - select for diffs
Mon Oct 7 13:29:59 2002 UTC (22 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +5 -4
lines
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.138.2.1: download - view: text, markup, annotated - select for diffs
Mon Sep 30 13:07:15 2002 UTC (22 years, 2 months ago) by lukem
Branches: netbsd-1-6
CVS tags: 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
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +3 -3
lines
Pull up revision 1.142 (requested by lukem in ticket #843):
Use LOGIN_NAME_MAX instead of `10' for the size of the curname[] buffer.
Allows /etc/ftpchroot to work correctly for usernames > 9 characters.
Noted by Max Khon in the freebsd-stable mailing list, via Thomas Vogt in
private email.
Revision 1.144: download - view: text, markup, annotated - select for diffs
Fri Sep 13 02:58:54 2002 UTC (22 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +8 -8
lines
revert previous. wtmp{,x} entries need not be \0-terminated, so
strncpy is more proper.
Revision 1.143: download - view: text, markup, annotated - select for diffs
Thu Sep 12 08:55:31 2002 UTC (22 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +8 -8
lines
use strl*, not strn*.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Thu Sep 12 06:40:43 2002 UTC (22 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +3 -3
lines
Use LOGIN_NAME_MAX instead of `10' for the size of the curname[] buffer.
Allows /etc/ftpchroot to work correctly for usernames > 9 characters.
Noted by Max Khon in the freebsd-stable mailing list, via Thomas Vogt in
private email.
Revision 1.141: download - view: text, markup, annotated - select for diffs
Tue Aug 20 13:55:58 2002 UTC (22 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +14 -3
lines
Disable UTMPX support for now, because ftpd might chroot and we need
to keep files open.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Tue Aug 20 13:51:09 2002 UTC (22 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +69 -28
lines
utmpx support
Revision 1.139: download - view: text, markup, annotated - select for diffs
Thu May 30 00:24:47 2002 UTC (22 years, 6 months ago) by enami
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +221 -68
lines
Add optional mmap(2)/write(2) support for binary file transfer.
The default is read(2)/write(2). Note that the sosend_loan needs
some more work for better performance when a file isn't cached.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Mon Feb 11 11:45:07 2002 UTC (22 years, 9 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1
Branch point for: netbsd-1-6
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +19 -9
lines
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.137: download - view: text, markup, annotated - select for diffs
Fri Feb 1 04:35:31 2002 UTC (22 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +5 -8
lines
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.136: download - view: text, markup, annotated - select for diffs
Mon Jan 21 11:25:20 2002 UTC (22 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +5 -4
lines
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.135: download - view: text, markup, annotated - select for diffs
Wed Dec 12 08:13:33 2001 UTC (22 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +3 -3
lines
remove extraneous ": " from message
Revision 1.134: download - view: text, markup, annotated - select for diffs
Thu Dec 6 02:00:06 2001 UTC (23 years ago) by lukem
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +3 -3
lines
Fix skey password challenge. Problem reported in [bin/14848] by John F. Woods.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Tue Dec 4 13:54:12 2001 UTC (23 years ago) by lukem
Branches: MAIN
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +107 -72
lines
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.132: download - view: text, markup, annotated - select for diffs
Sat Dec 1 10:25:30 2001 UTC (23 years ago) by lukem
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +36 -38
lines
- enable case insensitive fnmatch(3)ing for hostname globs in ftpusers(5)
- enable WARNS=2
Revision 1.131: download - view: text, markup, annotated - select for diffs
Tue Nov 27 23:42:40 2001 UTC (23 years ago) by lukem
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +6 -5
lines
- 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.130: download - view: text, markup, annotated - select for diffs
Mon Sep 24 13:22:30 2001 UTC (23 years, 2 months ago) by wiz
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +6 -2
lines
va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
Revision 1.129: download - view: text, markup, annotated - select for diffs
Wed Sep 19 00:50:52 2001 UTC (23 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +3 -5
lines
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.128: download - view: text, markup, annotated - select for diffs
Sun Jul 8 07:27:14 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +3 -3
lines
Alan Barrett informs me that "advertise" (instead of "advertize") is
the norm even in American English.
Revision 1.127: download - view: text, markup, annotated - select for diffs
Tue Jun 26 19:30:45 2001 UTC (23 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +3 -3
lines
s/tise/tize/ in docco, add "advertize" as synonym for "advertise"
Revision 1.126: download - view: text, markup, annotated - select for diffs
Mon Jun 11 01:50:51 2001 UTC (23 years, 6 months ago) by wiz
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +3 -3
lines
Fix various misspellings of compatible/compatibility.
Revision 1.125: download - view: text, markup, annotated - select for diffs
Wed Apr 25 01:46:26 2001 UTC (23 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +3 -5
lines
crank copyrights of files changed this year
remove superfluous byte_count update in send_file_list
crank version
Revision 1.124: download - view: text, markup, annotated - select for diffs
Thu Apr 12 02:28:59 2001 UTC (23 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +8 -4
lines
minor knf post aidan's oob rototill
Revision 1.123: download - view: text, markup, annotated - select for diffs
Sun Apr 1 23:04:31 2001 UTC (23 years, 8 months ago) by aidan
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +31 -22
lines
As threatened, handle OOB commands from within ftpcmd.y.
This involved changing the yacc syntax to be line-oriented, rather than
having it run against the entire input at once, and adding a flag to
struct tab, to indicate if or not it's acceptable for a command to occur
OOB.
Revision 1.61.2.5: download - view: text, markup, annotated - select for diffs
Sun Apr 1 16:08:36 2001 UTC (23 years, 8 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.61.2.4: preferred, colored; branchpoint 1.61: preferred, colored; next MAIN 1.62: preferred, colored
Changes since revision 1.61.2.4: +3 -3
lines
Pull up revision 1.122 (requested by christos):
Fixes buffer overflow problems in glob(3). Adds and uses GLOB_LIMIT
to prevent denial of service attacks.
Revision 1.95.2.5: download - view: text, markup, annotated - select for diffs
Thu Mar 29 14:14:18 2001 UTC (23 years, 8 months ago) by lukem
Branches: netbsd-1-5
CVS tags: netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001
Diff to: previous 1.95.2.4: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.2.4: +632 -247
lines
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.122: download - view: text, markup, annotated - select for diffs
Fri Mar 16 20:42:13 2001 UTC (23 years, 8 months ago) by christos
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +3 -3
lines
Use GLOB_LIMIT. Also fix a bug where gl_offs was not initialized and could
contain trash.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Sun Feb 4 22:04:12 2001 UTC (23 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +2 -3
lines
fix redundant declarations.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Tue Jan 16 02:50:29 2001 UTC (23 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +3 -3
lines
comment or delete text after CPP directives.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Wed Jan 10 00:20:49 2001 UTC (23 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +9 -9
lines
consistently use syslog priorities
Revision 1.118: download - view: text, markup, annotated - select for diffs
Mon Dec 18 02:32:51 2000 UTC (23 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +173 -62
lines
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.61.2.4: download - view: text, markup, annotated - select for diffs
Thu Dec 14 22:33:47 2000 UTC (23 years, 11 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.61.2.3: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.2.3: +16 -10
lines
Apply patch (requested by bouyer):
Fix a one-byte buffer overrun.
Bump version to 7.1.0a.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu Nov 30 08:33:33 2000 UTC (24 years ago) by lukem
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +3 -3
lines
initialise confdir to _DEFAULT_CONFDIR again, so that -C works...
Revision 1.116: download - view: text, markup, annotated - select for diffs
Thu Nov 30 06:06:08 2000 UTC (24 years ago) by lukem
Branches: MAIN
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +30 -25
lines
- rename valid_passwd() -> checkpassword()
- move check for expired accounts from pass() into checkpassword()
Revision 1.115: download - view: text, markup, annotated - select for diffs
Thu Nov 30 02:59:11 2000 UTC (24 years ago) by lukem
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +32 -10
lines
- 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.114: download - view: text, markup, annotated - select for diffs
Tue Nov 28 09:46:34 2000 UTC (24 years ago) by lukem
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +7 -7
lines
modify dolog() to take a struct sockinet * instead of struct sockaddr *
Revision 1.113: download - view: text, markup, annotated - select for diffs
Tue Nov 28 09:31:29 2000 UTC (24 years ago) by lukem
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +6 -2
lines
- ensure all uses of AF_INET6 are wrapped in #ifdef INET6
- don't define `ALL' as a token twice in the grammar
Revision 1.112: download - view: text, markup, annotated - select for diffs
Fri Nov 24 12:56:45 2000 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +27 -19
lines
cope with 2292bis-01 getaddrinfo (no NI_WITHSCOPEID, always attach
scope identifier).
always check error result from getnameinfo.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Thu Nov 16 13:15:14 2000 UTC (24 years ago) by lukem
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +106 -34
lines
- 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.110: download - view: text, markup, annotated - select for diffs
Wed Nov 15 04:07:07 2000 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +4 -13
lines
we can assume presense of getaddrinfo.
use NI_MAXHOST for the hostname buffer used with getnameinfo.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Wed Nov 15 02:32:30 2000 UTC (24 years ago) by lukem
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +134 -176
lines
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.108: download - view: text, markup, annotated - select for diffs
Mon Nov 13 15:11:57 2000 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +3 -3
lines
correct result code on invalid port number against EPRT.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Mon Nov 13 11:52:41 2000 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +10 -2
lines
plug memory leak
Revision 1.106: download - view: text, markup, annotated - select for diffs
Mon Nov 13 11:50:46 2000 UTC (24 years ago) by itojun
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +163 -26
lines
- 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.95.2.4: download - view: text, markup, annotated - select for diffs
Thu Sep 28 18:37:42 2000 UTC (24 years, 2 months ago) by jdolecek
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE,
netbsd-1-5-BETA2,
netbsd-1-5-BETA
Diff to: previous 1.95.2.3: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.2.3: +3 -2
lines
pullup rev. 1.105 from trunk (approved by thorpej):
call setlogin() before dropping root privileges, so that process
would have correct p_login value
Revision 1.105: download - view: text, markup, annotated - select for diffs
Thu Sep 28 17:49:06 2000 UTC (24 years, 2 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +3 -2
lines
call setlogin() before dropping root privileges, so that process
would have correct p_login value
Revision 1.104: download - view: text, markup, annotated - select for diffs
Fri Sep 15 14:55:16 2000 UTC (24 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +75 -14
lines
Make this compile again without -DINET6 and without get{addr,name}info(3)
This ftpd now compiles and runs on NetBSD/1.4.2 with:
CPPFLAGS+= \
'-Dstrlcpy(a,b,c)=(strncpy(a,b,c),strlen(a))' \
'-Dstrlcat=strncat' \
'-Dsl_add(a,b)=(sl_add(a,b),0)'
Revision 1.103: download - view: text, markup, annotated - select for diffs
Sat Jul 29 08:20:02 2000 UTC (24 years, 4 months ago) by martin
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -3
lines
Fixed s/key compile bug.
Revision 1.102: download - view: text, markup, annotated - select for diffs
Wed Jul 26 13:53:34 2000 UTC (24 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +16 -7
lines
add support for -W; don't log to wtmp (orthogonal of -U which logs to utmp).
inspired by similar option in wuftpd.
Revision 1.95.2.3: download - view: text, markup, annotated - select for diffs
Tue Jul 25 08:38:39 2000 UTC (24 years, 4 months ago) by lukem
Branches: netbsd-1-5
CVS tags: netbsd-1-5-ALPHA2
Diff to: previous 1.95.2.2: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.2.2: +176 -66
lines
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.101: download - view: text, markup, annotated - select for diffs
Sun Jul 23 14:40:48 2000 UTC (24 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +96 -43
lines
* 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.100: download - view: text, markup, annotated - select for diffs
Mon Jul 17 02:30:54 2000 UTC (24 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +74 -23
lines
* 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.99: download - view: text, markup, annotated - select for diffs
Sat Jul 15 03:45:20 2000 UTC (24 years, 4 months ago) by lukem
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +9 -3
lines
* add -H, which acts like -h `hostname`. (requested by kim@)
* refer to draft-ietf-ftpext-mlst-11 instead of -10
Revision 1.61.2.3: download - view: text, markup, annotated - select for diffs
Sat Jul 8 18:58:10 2000 UTC (24 years, 5 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH003
Diff to: previous 1.61.2.2: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.2.2: +5 -5
lines
Pull up revision 1.97 (requested by itojun):
Do not use user-supplied data as format string to setproctitle().
Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat Jul 8 18:24:28 2000 UTC (24 years, 5 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +4 -4
lines
More format paranoia.
Revision 1.95.2.2: download - view: text, markup, annotated - select for diffs
Fri Jul 7 11:33:33 2000 UTC (24 years, 5 months ago) by itojun
Branches: netbsd-1-5
Diff to: previous 1.95.2.1: preferred, colored; branchpoint 1.95: preferred, colored
Changes since revision 1.95.2.1: +5 -5
lines
pullup, approved by releng-1-5
udit setproctitle() - don't use variable alone, use with "%s".
from openbsd
usr.sbin/faithd/faithd.c 1.12 -> 1.13
libexec/ftpd/ftpd.c 1.96 -> 1.97
usr.sbin/rpc.lockd/lockd_lock.c 1.2 -> 1.3
Revision 1.97: download - view: text, markup, annotated - select for diffs
Wed Jul 5 22:15:04 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +5 -5
lines
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.89.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 15:58:17 2000 UTC (24 years, 5 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.89: preferred, colored; next MAIN 1.90: preferred, colored
Changes since revision 1.89: +153 -327
lines
Sync w/ netbsd-1-5-base.
Revision 1.95.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 08:45:10 2000 UTC (24 years, 5 months ago) by lukem
Branches: netbsd-1-5
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +6 -8
lines
Pull up revision 1.96:
- fix RATE{GET,PUT} when the client is slower than the rate limit
- document units RATE{GET,PUT} use
Fixes PR#10390
Revision 1.96: download - view: text, markup, annotated - select for diffs
Tue Jun 20 07:39:46 2000 UTC (24 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +6 -8
lines
fix problems noted by <dogcow@redback.com> in [bin/10390] and private email:
* fix RATE{GET,PUT} under some situations when the client is slower than
the server (something i missed when migrating the rate limiting code
i wrote in ftp(1) to ftpd(8))
* document what units RATE{GET,PUT} use
Revision 1.95: download - view: text, markup, annotated - select for diffs
Mon Jun 19 15:15:04 2000 UTC (24 years, 5 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +114 -130
lines
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.94: download - view: text, markup, annotated - select for diffs
Wed Jun 14 13:55:15 2000 UTC (24 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +4 -6
lines
correct LPSV/LPRT display on STAT command.
(did not crank the version since the change is on the same day)
Revision 1.93: download - view: text, markup, annotated - select for diffs
Wed Jun 14 13:44:24 2000 UTC (24 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +50 -223
lines
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.92: download - view: text, markup, annotated - select for diffs
Fri Jun 2 14:47:19 2000 UTC (24 years, 6 months ago) by explorer
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +19 -5
lines
make this compile with KERBEROS5 defined. Note: only one of KERBEROS or KERBEROS5 may be defined in this file...
Revision 1.91: download - view: text, markup, annotated - select for diffs
Fri Jun 2 00:19:04 2000 UTC (24 years, 6 months ago) by fredb
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +4 -3
lines
Make this build again with crypto-us, after recent changes to k{,5}login.c.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Tue May 30 05:31:31 2000 UTC (24 years, 6 months ago) by itojun
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -2
lines
add comment on IPv4 mapped address twist
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sat May 20 23:34:55 2000 UTC (24 years, 6 months ago) by lukem
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +31 -26
lines
- 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.88: download - view: text, markup, annotated - select for diffs
Sat May 20 02:20:18 2000 UTC (24 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +63 -133
lines
convert to ANSI C as per style guide
Revision 1.61.2.2: download - view: text, markup, annotated - select for diffs
Thu May 11 10:14:37 2000 UTC (24 years, 7 months ago) by he
Branches: netbsd-1-4
Diff to: previous 1.61.2.1: preferred, colored; branchpoint 1.61: preferred, colored
Changes since revision 1.61.2.1: +2 -4
lines
Apply patch (requested by sommerfeld):
Back out unnecessary half of revision 1.70 which breaks parsing
of /etc/ftpchroot.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Sun Mar 5 06:12:19 2000 UTC (24 years, 9 months ago) by lukem
Branches: MAIN
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +8 -42
lines
* 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.86: download - view: text, markup, annotated - select for diffs
Mon Feb 14 03:26:06 2000 UTC (24 years, 9 months ago) by aidan
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +3 -3
lines
Move include/kerberosIV/com_err.h to include/com_err.h
Revision 1.85: download - view: text, markup, annotated - select for diffs
Thu Jan 13 00:04:31 2000 UTC (24 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +9 -2
lines
suppress verbose messages from CWD and post-login if the first
character of the anonymous password is `-'.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Jan 12 22:39:28 2000 UTC (24 years, 10 months ago) by lukem
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +47 -11
lines
* 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.83: download - view: text, markup, annotated - select for diffs
Sat Jan 8 11:14:36 2000 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +3 -3
lines
missing "." on reply
Revision 1.82: download - view: text, markup, annotated - select for diffs
Sat Jan 8 11:09:56 2000 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +39 -19
lines
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.69.2.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:30:12 1999 UTC (24 years, 11 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.69: preferred, colored; next MAIN 1.70: preferred, colored
Changes since revision 1.69: +496 -273
lines
Pull up to last week's -current.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Tue Dec 21 12:56:15 1999 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +61 -14
lines
* add support for optional groupglob in ftpuser entry. the syntax is now:
userglob[:groupglob][@host] [directive [class]]
* append ``(class: CLASSNAME, type: TYPE)'' to the syslogged login messages
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sun Dec 19 00:09:31 1999 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +15 -16
lines
* 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.79: download - view: text, markup, annotated - select for diffs
Sat Dec 18 06:33:54 1999 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +12 -21
lines
deprecate -h hostname in favour of automatic determination of local hostname.
this is a much cleaner solution for supporting multihomed virtual servers.
from Geoff C. Wing <gcw@pobox.com> in [bin/8137].
Revision 1.78: download - view: text, markup, annotated - select for diffs
Sat Dec 18 05:51:35 1999 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +37 -11
lines
* 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
Revision 1.77: download - view: text, markup, annotated - select for diffs
Thu Dec 16 07:01:23 1999 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +3 -3
lines
crank version
Revision 1.76: download - view: text, markup, annotated - select for diffs
Thu Dec 16 02:21:40 1999 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +30 -10
lines
* add support for `-h hostname', which defines the hostname to advertise
as (useful for virtual ftp servers in conjunction with inetd.conf(5)'s
ability to bind to a specific address).
if this option is used, add `hostname' to the syslog messages.
* improve documentation of command-line options
* don't allow class names of `all' or `none' in ftpusers
Revision 1.75: download - view: text, markup, annotated - select for diffs
Mon Dec 13 16:30:37 1999 UTC (24 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +14 -8
lines
do not perform setsockopt(IP_TOS) on mapped connections (IPv4 connection
toward AF_INET6 socket).
Revision 1.74: download - view: text, markup, annotated - select for diffs
Mon Dec 13 04:36:10 1999 UTC (24 years, 11 months ago) by itojun
Branches: MAIN
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +5 -4
lines
avoid use of s6_addr32, as it is non-standard.
(sync with KAME)
Revision 1.73: download - view: text, markup, annotated - select for diffs
Sun Dec 12 14:05:54 1999 UTC (24 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +334 -212
lines
* change format of /etc/ftpusers lines from
userglob [allow|deny]
to
userglob[@host] [allow|deny [classname]]
where class is a userdefined classname.
- if host is given it may either be a CIDR address (e.g, `1.2.3.0/24') or a
hostglob (e.g, `*.foo.com'), and the remote host is matched against that.
- if classname is given, use that to match entries in ftpd.conf (defaults
to `guest' for `anonymous'/`ftp' logins, `chroot' for users found in
/etc/ftpchroot, and `real' for everyone else.
* implement new /etc/ftpd.conf directives:
classtype classname type set type of classname to GUEST, CHROOT, or REAL
motd classname file file to use instead of /etc/motd
rateget classname rate set rateget throttle to rate
rateput classname rate set rateput throttle to rate
upload classname allow/deny uploads (STOU, STOR, APPE). if
denied, also acts as `modify deny'.
* implement new `SITE' commands:
RATEGET as per /etc/ftpd.conf rateget, but cannot exceed that
RATEPUT as per /etc/ftpd.conf rateput, but cannot exceed that
* implement format_file(), which outputs a file to the user, parsing %
escapes. use to print /etc/ftpwelcome, /etc/motd, and the `display' file.
* implement strsuftoi() (from ftp(1)), which parses a number and
optional suffix (for use with rateget, etc)
* don't bother seteuid(0) ; bind(...) ; seteuid(pw->pw_uid), since
we don't need reserved ports (at wasn't getting them anyway).
* update & reorder copyrights
* use strlcpy() as appropriate
Revision 1.72: download - view: text, markup, annotated - select for diffs
Thu Dec 9 11:18:05 1999 UTC (25 years ago) by itojun
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +6 -2
lines
close pdata when it is kept opened till call to {,long_}passive().
Revision 1.71: download - view: text, markup, annotated - select for diffs
Tue Dec 7 05:30:54 1999 UTC (25 years ago) by lukem
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +32 -27
lines
* change ftpd_popen() to take char *argv[] instead of char *cmd.
the string tokenisation must be performed by the caller (which is
generally easy because it's almost always a static command).
* change do_conversion() to return a char *argv[] instead of char *cmd.
tokenisation of the command is done internally.
* change retrieve() to take char *argv[] instead of char *cmd.
(to take advantage of the above changes). fixes [bin/8173]
* use fparseln() instead of fgetln()
* store conversions in listed order (rather than reverse order)
* use stringlists instead of handrolling code to manage an argv.
Revision 1.61.2.1: download - view: text, markup, annotated - select for diffs
Fri Oct 1 12:08:06 1999 UTC (25 years, 2 months ago) by he
Branches: netbsd-1-4
CVS tags: netbsd-1-4-PATCH002
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +5 -3
lines
Pull up revision 1.70 (requested by tron):
Avoid segmentation fault if there is an empty line in /etc/ftpusers,
fixing PR#8504.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Thu Sep 30 18:12:34 1999 UTC (25 years, 2 months ago) by tron
Branches: MAIN
CVS tags: comdex-fall-1999-base,
comdex-fall-1999
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +5 -3
lines
Avoid segmention fault if there is an empty line in "/etc/ftpusers".
Problem noted by Emmanuel Dreyfus in PR bin/8504.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Wed Aug 25 16:23:52 1999 UTC (25 years, 3 months ago) by christos
Branches: MAIN
Branch point for: wrstuden-devbsize
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +4 -3
lines
Make this compile with krb5.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Tue Jul 27 15:41:49 1999 UTC (25 years, 4 months ago) by itojun
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +34 -9
lines
handle IPv4 TCP control connection, toward AF_INET6 socket.
this happens when you have the following line in inetd.conf,
but not with tcp4 line:
>>>ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Jul 2 05:52:14 1999 UTC (25 years, 5 months ago) by itojun
Branches: MAIN
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +325 -67
lines
dual-stack ftpd. run this from inetd, like:
>>ftp stream tcp6 nowait root /usr/libexec/ftpd ftpd -ll
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Jun 5 13:49:53 1999 UTC (25 years, 6 months ago) by briggs
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +20 -4
lines
Set keepalives on the sockets to force logouts on connections that have
disappeared.
Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon May 24 21:57:19 1999 UTC (25 years, 6 months ago) by ross
Branches: MAIN
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +19 -15
lines
* Cast %q[ud] arguments to fix ILP32/LP64 off_t variation.
* Fix bug in 213 reply: correct ordering of format string args.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Wed May 19 21:44:29 1999 UTC (25 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +4 -4
lines
Cast away a const for now; const poisoning kerberos #0.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Tue May 18 08:14:18 1999 UTC (25 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +44 -25
lines
* fix a problem in retrieve() where arguments to commands weren't working
(this was broken in the last commit). problem noticed by simonb@
* don't display the stderr output of the internal ls.
* modify usage of lreply so that generally only one `XXX-' code per
`block' is displayed; the rest of the lines have four spaces instead.
i find this easier to read.
* fix a couple places where byte accounting wasn't correct
Revision 1.62: download - view: text, markup, annotated - select for diffs
Mon May 17 15:14:54 1999 UTC (25 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +450 -163
lines
features/fixes:
* implement xferstats. full stats are displayed for `STAT', and a
summary is displayed upon exit (and syslogged). inspired by wu-ftpd.
* wrap data xfers in {send,receive}_data with alarm() timeouts. this
should remove the majority of the `hanging ftpd' problems that
people were still seeing. inspired by wu-ftpd.
* link with ../../bin/ls, so that bin/ls is not required under a
chroot()ed area for `LIST' to work. based on [bin/4497] from
"Soren S. Jorvang" <soren@t.dk>
* migrate code from util.c into ftpd.c, so that it doesn't conflict
with ls' util.c.
* remove man page comment about ~ftp/bin/ls being necessary.
* bump version to 7.2.0.
* syslog xfer time with xfer stats.
* if appropriate, syslog error message with command.
internal code stuff:
* change arguments of various functions from `char *' to `const char *'.
* define PLURAL(x) macro, which returns `' if x == 1, `s' otherwise.
use macro appropriately
* lreply(): a code of -1 means ``send line as is''. a code of 0
means ``send line with 4 space prefix''. don't print a space after
the `-' for any other code.
* logcmd(): add `const struct timeval *elapsed' and `const char *error'
for more flexible error reporting
Revision 1.61: download - view: text, markup, annotated - select for diffs
Mon Dec 28 04:54:01 1998 UTC (25 years, 11 months ago) by lukem
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH001
Branch point for: netbsd-1-4
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +15 -62
lines
* replace LOG(CMD|BYTES) macros with logcmd(), which is a cleaner
solution with less code replication. use realpath() in logcmd() so
that all logged filenames are sane.
* support `REST STREAM' in `FEAT' reply (from draft-ietf-ftpext-mlst-05)
* in 'HELP', suffix unimplemented commands with `-' instead of `*'; the
former is easier to differentiate from `+'.
* deprecate curdir() now that logcmd() doesn't use it.
* ensure all filename buffers are at least MAXPATHLEN+1 in size.
* move jmp_buf errcatch out of extern.h, removing need to #include <setjmp.h>
in every file.
Revision 1.60: download - view: text, markup, annotated - select for diffs
Mon Sep 7 08:17:39 1998 UTC (26 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +3 -3
lines
bump version from 7.03 to 7.1.0 (new commands available)
Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Sep 7 08:15:25 1998 UTC (26 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -10
lines
remove nack() - missed in previous work
Revision 1.58: download - view: text, markup, annotated - select for diffs
Mon Sep 7 08:11:20 1998 UTC (26 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +74 -88
lines
new features:
* implement FEAT and OPTS from RFC2389. FEAT returns SIZE and MDTM.
OPTS only works on NOOP (as a test).
* extend format of /etc/ftpchroot similar to /etc/ftpusers; each entry
can take an optional trailing `yes' or `no' which indicates if
chroot should be done (defaults to `yes').
based on patches from Ty Sarna <tsarna@endicor.com> in [bin/4769]
cleanups/bugs:
* reorder and reformat entries in yacc parser to match cmdtab[].
add a blank line between each rule.
* add short hasopts and char *options to struct tab, to support OPTS.
* deprecate upper(); use strcasecmp() instead of strcmp()
* remove unnecessary for (;;) { } in yylex();
* replace copy() and sgetsave() with xstrdup()
* fix a couple of `hasyyerrored = 1' that were accidently removed.
Revision 1.57: download - view: text, markup, annotated - select for diffs
Sun Sep 6 10:39:40 1998 UTC (26 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +8 -27
lines
* complete fix for `multiple replies returned for single parse error'
problem; move `hasyyerrored' state flag out of yylex() so that
check_{login,modify} can also set it.
* check result of check_login for PORT command
* set initial timeout before the "setjmp(); for(;;) yyparse()",
otherwise an invalid command after login incorrectly sets the timeout
to 5 minutes (rather than what was set in ftpd.conf)
* replace (char *)0 with NULL
* move yyerror() from ftpd.c to ftpcmd.y
* remove need for -Dunix, by using the version string from ftpd.c
(instead of `BSD-199506')
* move all extern-ed vars into extern.h
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Sep 5 17:00:01 1998 UTC (26 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +3 -4
lines
replace malloc/strcpy with strdup
Revision 1.55: download - view: text, markup, annotated - select for diffs
Mon Jul 27 01:55:23 1998 UTC (26 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +4 -4
lines
const poisoning.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Mon Jul 27 01:51:23 1998 UTC (26 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +16 -16
lines
const poisoning.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Sun Jul 26 14:57:56 1998 UTC (26 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +3 -3
lines
const poisoning.
Revision 1.52: download - view: text, markup, annotated - select for diffs
Mon Jul 6 06:47:58 1998 UTC (26 years, 5 months ago) by mrg
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +9 -7
lines
- use an array MAXHOSTNAMELEN+1 size to hold hostnames
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Jun 26 17:41:38 1998 UTC (26 years, 5 months ago) by msaitoh
Branches: MAIN
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +10 -4
lines
add "-s" flag (SecureID).
Revision 1.50: download - view: text, markup, annotated - select for diffs
Fri Jun 19 22:59:01 1998 UTC (26 years, 5 months ago) by kleink
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +3 -3
lines
GLOB_QUOTE is dead; per POSIX, backslash quoting of special characters being
enabled is the default behaviour.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Mon Jun 8 07:13:13 1998 UTC (26 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +71 -28
lines
support displaying the stderr output from a LIST or a conversion to
the user at the end of a transfer.
this generates a file in /tmp, so anonymous requires a
writable ~ftp/tmp, which you may not want to do (because it may
allow people to unwanted upload files).
XXX: a better method of storing the stderr output would be nice, but
is a lot more effort to implement. this feature can at least be
used temporarily whilst debugging why an ftp conversion doesn't
work.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Wed Jun 3 13:21:42 1998 UTC (26 years, 6 months ago) by mouse
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +4 -3
lines
Show/log the strerror(errno) string when getcwd fails
Revision 1.47: download - view: text, markup, annotated - select for diffs
Wed Jun 3 09:21:45 1998 UTC (26 years, 6 months ago) by hubertf
Branches: MAIN
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +3 -3
lines
Fix some problems with failed getcwd commands, reported in PR bin/5531
by Saitoh Masanobu <msaitoh@spa.is.uec.ac.jp>.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Mon Feb 23 23:10:34 1998 UTC (26 years, 9 months ago) by cjs
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +3 -3
lines
Send back an error message rather than dumping core when an invalid
username is entered. The latter, while effective, does not appear to
me to be an appropriate response.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sun Feb 1 14:10:22 1998 UTC (26 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +12 -9
lines
- #endif foo -> #endif /* foo */
- #if __STDC__ -> #ifdef __STDC__
- Don't allow expired accounts to login.
Revision 1.39.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 29 13:06:32 1998 UTC (26 years, 10 months ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001
Diff to: previous 1.39.2.3: preferred, colored; branchpoint 1.39: preferred, colored; next MAIN 1.40: preferred, colored
Changes since revision 1.39.2.3: +9 -4
lines
Pull up 1.44 (lukem)
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sun Dec 28 04:28:17 1997 UTC (26 years, 11 months ago) by lukem
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +9 -4
lines
set $HOME to "/" for guest or chroot users, pw->pw_dir otherwise.
fixes expansion of `~/...' pathnames.
Revision 1.39.2.3: download - view: text, markup, annotated - select for diffs
Mon Dec 1 20:06:36 1997 UTC (27 years ago) by mellon
Branches: netbsd-1-3
CVS tags: netbsd-1-3-RELEASE
Diff to: previous 1.39.2.2: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.2: +9 -6
lines
Pull rev 1.42 and 1.43 up from trunk (lukem) (reviewed by mellon)
Revision 1.43: download - view: text, markup, annotated - select for diffs
Fri Nov 28 23:42:36 1997 UTC (27 years ago) by lukem
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +3 -3
lines
use 300 seconds (as per login(1)) for initial timeout, rather than 900 secs
Revision 1.42: download - view: text, markup, annotated - select for diffs
Fri Nov 28 23:32:30 1997 UTC (27 years ago) by lukem
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +7 -5
lines
* initialise curclass.timeout to 900 in main(), so that operations that
want to timeout using this value that are executed before the conf file
is parsed will work. fixes ``stale ftpd stuck in connection phase''
* in PASV mode, wrap accept() in an alarm timeout. fixes ``stale ftpd because
of client disappearing in pasv mode (usually browsers)''
* main() doesn't need envp argument
Revision 1.39.2.2: download - view: text, markup, annotated - select for diffs
Mon Nov 17 16:43:14 1997 UTC (27 years ago) by mrg
Branches: netbsd-1-3
CVS tags: netbsd-1-3-BETA
Diff to: previous 1.39.2.1: preferred, colored; branchpoint 1.39: preferred, colored
Changes since revision 1.39.2.1: +5 -3
lines
pull up from trunk: fixes from lukem.
Revision 1.41: download - view: text, markup, annotated - select for diffs
Tue Nov 11 12:42:39 1997 UTC (27 years, 1 month ago) by lukem
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +5 -3
lines
* change checkportcmd syntax to `checkportcmd class [off]' (as per `modify')
* display current setting of checkportcmd in STAT
* ensure that curclass.checkportcmd is initialised to 0
* document default setting of checkportcmd in ftpd(8)
* cleanup code a bit, putting code for "checkportcmd" in alphabetical order
Revision 1.39.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 11 06:38:28 1997 UTC (27 years, 1 month ago) by mrg
Branches: netbsd-1-3
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
pull up from trunk: increment version.
Revision 1.40: download - view: text, markup, annotated - select for diffs
Tue Nov 11 06:32:17 1997 UTC (27 years, 1 month ago) by mrg
Branches: MAIN
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +3 -3
lines
increment version.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Sun Oct 19 18:16:19 1997 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +5 -19
lines
Use remove(3) rather than stat(2)ing the file, yadda yadda.
Simpler, and DTRT for symlinks.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Sun Oct 12 14:04:37 1997 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +35 -6
lines
Add some krb5 hooks, though it probably doesn't work yet.
Revision 1.37: download - view: text, markup, annotated - select for diffs
Sun Oct 12 13:52:51 1997 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +11 -12
lines
Actually, do Kerberos first, since we want to get a TGT if possible.
Also, clean up some minor cruft.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Sun Oct 12 13:18:56 1997 UTC (27 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +15 -13
lines
Format police.
Also, try s/key before Kerberos.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Tue Sep 23 14:25:31 1997 UTC (27 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +37 -29
lines
- add '-C user', which runs checkaccess(user) and exits with the result
(0 == user allowed in /etc/ftpusers, 1 == user denied in /etc/ftpusers).
from Jim Bernard <jbernard@tater.mines.edu> in [security/4061] with mods
- getopt returns -1 not EOF
- in lostcon(), call dologout(1) not dologout(-1);
Revision 1.34: download - view: text, markup, annotated - select for diffs
Tue Sep 23 13:56:42 1997 UTC (27 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +25 -7
lines
implement '-c confdir', which allows the specification of an alternate
directory to look for the various configuration files, overriding /etc.
From Matthias Scheler <tron@lyssa.owl.de> in [bin/4133]
Revision 1.33: download - view: text, markup, annotated - select for diffs
Thu Sep 18 07:27:35 1997 UTC (27 years, 2 months ago) by lukem
Branches: MAIN
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +30 -8
lines
- ensure 257 reply codes from PWD and MKD are RFC959 compliant:
257 "dirname" some message
(any "s in dirname should be doubled, per the RFC)
- don't put an extra / in the output of NLST if the last char in the
directory is a /
- bump the version to 7.01 because of these fixes
Revision 1.32: download - view: text, markup, annotated - select for diffs
Tue Aug 26 13:10:39 1997 UTC (27 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +3 -3
lines
fix grammo
Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Aug 25 19:31:48 1997 UTC (27 years, 3 months ago) by kleink
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +4 -4
lines
Lseek(2) usage cleanup: the use of L_SET/L_INCR/L_XTND is deprecated,
use SEEK_SET/SEEK_CUR/SEEK_END instead.
Revision 1.30: download - view: text, markup, annotated - select for diffs
Thu Aug 14 02:06:17 1997 UTC (27 years, 3 months ago) by lukem
Branches: MAIN
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +7 -7
lines
* don't depend upon buffer returned by fgetln() to remain. fix mainly
from Tatoku Ogaito <tacha@tera.fukui-med.ac.jp> in [bin/3967]
* fgetln() doesn't \0 terminate its string. look for the \n and replace
it with \0 (if no \n, ignore the line - it's most likely corrupt)
* more intensive checks on strdup() returns (not a current mem leak,
but depended upon code elsewhere to cleanup - not good)
* cleanup some syslog error messages
Revision 1.29: download - view: text, markup, annotated - select for diffs
Mon Jul 21 05:13:10 1997 UTC (27 years, 4 months ago) by mrg
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +16 -10
lines
be safe with some buffers.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun Jun 22 22:33:13 1997 UTC (27 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +4 -4
lines
missed some warnings.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Jun 21 18:01:35 1997 UTC (27 years, 5 months ago) by cjs
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +5 -4
lines
%qd wants long long. Thus, if you're going to turn on warnings for
printf format strings, you've got to make sure you cast quantities
passed to %qd to long long because on 64-bit machines they're often
just long, which is not the same, even when it's the same size.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sat Jun 21 04:38:54 1997 UTC (27 years, 5 months ago) by mellon
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +6 -2
lines
Need prototype for klogin() - probably ought to go in a header file, but klogin probably ought to go in a library first
Revision 1.25: download - view: text, markup, annotated - select for diffs
Wed Jun 18 19:05:50 1997 UTC (27 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +22 -7
lines
- Pass gcc -Wall
- Fix incorrect const poisoning
- Fix ftpd_popen to dynamically allocate strings to avoid buffer overruns.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Sat Jun 14 08:43:31 1997 UTC (27 years, 5 months ago) by lukem
Branches: MAIN
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +83 -67
lines
* implement /etc/ftpd.conf, which adds support for the following features,
controllable on a per class (which is one of: real, chroot, guest,
all or none) basis:
* on-the-fly execution of a command to build the file (a ``conversion''),
providing support for "get dirname.tar" and the like.
* displaying the contents of a file when a directory is entered
for the first time.
* maximum value for timeout (replaces -T).
* control usage of CHMOD, DELE, MKD, RMD, UMASK; replacing -DINSECURE_GUEST.
* notifying the user of the existance of a files matching a glob
pattern when a directory is entered for the first time.
* default value for timeout (replaces -t).
* default umask (replaces -DGUEST_CMASK and -u).
The conversion, display, and notify functionality was based on code by
Simon Burge <simonb@telstra.com.au>.
* clean up and re-order parts of the man page into subsections.
* STAT displays the settings defined for the class of the current user.
* bump version from 6.00 to 7.00, because of ftpd.conf.
* deprecate -DGUEST_CMASK and -DINSECURE_GUEST in the Makefile, and
-t, -T and -u, as ftpd.conf allows finer control of these.
* add "nostderr" argument to ftpd_popen(), because you don't want the
stderr stream mixing with the stdout stream during a conversion,
as this can corrupt the stream.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Thu May 29 10:31:48 1997 UTC (27 years, 6 months ago) by lukem
Branches: MAIN
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +7 -4
lines
* don't log failed usernames to ftp.notice; use authpriv.notice instead.
closes [bin/1571]
* don't quit if "PASV" is received without the user being logged in.
closes [bin/2401], albiet with a modified test.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Fri May 23 22:09:53 1997 UTC (27 years, 6 months ago) by cjs
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +10 -8
lines
Allow setting the directory to which anonymous users chdir from
the command line. Document -u option. A couple of minor cleanups.
Revision 1.21: download - view: text, markup, annotated - select for diffs
Tue Apr 29 04:00:40 1997 UTC (27 years, 7 months ago) by cjs
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +20 -21
lines
/etc/ftpusers now matches globs against the username. mycroft suggested this.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Sun Apr 27 03:21:41 1997 UTC (27 years, 7 months ago) by lukem
Branches: MAIN
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -5
lines
* fix "cd ~" so that it works (from Simon Burge <simonb@telstra.com.au>
* move resetting of CFLAGS on powerpc to before optional CFLAGS settings
* minor code & man page cleanups
Revision 1.19: download - view: text, markup, annotated - select for diffs
Sun Apr 6 07:53:11 1997 UTC (27 years, 8 months ago) by cjs
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +88 -24
lines
Change the syntax of /etc/ftpusers to have both allow and deny
information in the same file by following the username with `allow'
or `deny'. Also, the user `*' can be used to set the default for
users not listed in the file. This is entirely backward compatable
with old /etc/ftpusers files.
Also, do the /etc/ftpusers and the valid login shell checks after
the password is verified, rather than before, so as not to give away
whether or not a particular user ID is present on the system.
Revision 1.18: download - view: text, markup, annotated - select for diffs
Sun Mar 30 22:53:40 1997 UTC (27 years, 8 months ago) by cjs
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +11 -3
lines
Changes to make anonymous uploads more secure. For anonymous users:
* Set umask to 707;
* Disable UMASK, CHMOD, DELE, RMD and MKD commands.
Compile-time options let you change that umask and go back to the
old, insecure way if you like.
Revision 1.1.1.3 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Mar 29 23:56:30 1997 UTC (27 years, 8 months ago) by cjs
Branches: WFJ-920714,
CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.2: preferred, colored
Changes since revision 1.1.1.2: +2 -2
lines
4.4BSD-lite2 import.
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sat Mar 29 23:55:58 1997 UTC (27 years, 8 months ago) by cjs
Branches: WFJ-920714,
CSRG
CVS tags: lite-1
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +384 -207
lines
Lite-1 Import.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Fri Mar 28 21:55:41 1997 UTC (27 years, 8 months ago) by cjs
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +3 -3
lines
4.4lite2 update. (The one minor bugfix between 4.4lite and 4.4lite2
was already in our sources, thus just the sccsid line is changed.)
Revision 1.15.6.1: download - view: text, markup, annotated - select for diffs
Thu Jan 23 06:07:18 1997 UTC (27 years, 10 months ago) by mrg
Branches: netbsd-1-2
CVS tags: netbsd-1-2-PATCH001
Diff to: previous 1.15: preferred, colored; next MAIN 1.16: preferred, colored
Changes since revision 1.15: +7 -2
lines
from trunk: set transflag to 0 in dologout, to prevent a SIGURG taking us back to the main loop.
Revision 1.16: download - view: text, markup, annotated - select for diffs
Thu Jan 23 05:57:55 1997 UTC (27 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +7 -2
lines
set transflag to 0 in dologout, to prevent a SIGURG taking us back to the main loop.
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sat Jun 3 22:46:47 1995 UTC (29 years, 6 months ago) by mycroft
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-BETA,
netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Branch point for: netbsd-1-2
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +3 -2
lines
Fill in sin_len.
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Apr 11 02:58:40 1995 UTC (29 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -2
lines
typo.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Tue Apr 11 02:44:55 1995 UTC (29 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +11 -6
lines
clean up RCS Id's and a couple of stype nits.
Also, fix bug 947 (reported by Luke Mewburn, extraneous vers.c)
Revision 1.12: download - view: text, markup, annotated - select for diffs
Wed Mar 22 16:55:35 1995 UTC (29 years, 8 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -2
lines
Use IPTOS_THROUGHPUT for passive mode data connection.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Mar 8 19:50:54 1995 UTC (29 years, 9 months ago) by brezak
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -5
lines
Fill in ttyname for cred file uniquifier under KERBEROS (From Michael Graff)
Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Dec 23 14:29:31 1994 UTC (29 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +2 -2
lines
be a bit more careful with types, casts, and and function declarations.
Revision 1.8.2.1: download - view: text, markup, annotated - select for diffs
Sun Sep 25 05:45:09 1994 UTC (30 years, 2 months ago) by cgd
Branches: netbsd-1-0
CVS tags: netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0
Diff to: previous 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8: +2 -2
lines
from trunk, per mycroft
Revision 1.9: download - view: text, markup, annotated - select for diffs
Tue Sep 20 23:09:14 1994 UTC (30 years, 2 months ago) by jtc
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +2 -2
lines
Fix PR #491, what could have been a big security hole
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Jun 29 01:49:45 1994 UTC (30 years, 5 months ago) by deraadt
Branches: MAIN
CVS tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +385 -211
lines
4.4-lite, plus our local changes
Revision 1.7: download - view: text, markup, annotated - select for diffs
Tue May 24 06:53:38 1994 UTC (30 years, 6 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +24 -5
lines
add skey support
Revision 1.6: download - view: text, markup, annotated - select for diffs
Thu Apr 14 03:15:41 1994 UTC (30 years, 7 months ago) by cgd
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +9 -56
lines
use setproctitle
Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Apr 6 20:50:05 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +19 -6
lines
Jarle.F.Greipsland@idt.unit.no's changes to allow for password-protected
chrooted ftp logins.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Mar 30 02:50:29 1994 UTC (30 years, 8 months ago) by cgd
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +29 -8
lines
some changes to make Kerberos a bit easier to use. from
Michael Graff <explorer@vorpal.com>, with some work by myself...
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Aug 1 18:30:47 1993 UTC (31 years, 4 months ago) by mycroft
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -1
lines
Add RCS identifiers.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon Apr 26 14:33:31 1993 UTC (31 years, 7 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-0-9-base,
netbsd-0-9-RELEASE,
netbsd-0-9-BETA,
netbsd-0-9-ALPHA2,
netbsd-0-9-ALPHA,
netbsd-0-9
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -4
lines
changed to use new libcrypt scheme.
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: WFJ-920714,
CSRG
CVS tags: patchkit-0-2-2,
netbsd-alpha-1,
netbsd-0-8,
WFJ-386bsd-01
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +0 -0
lines
initial import of 386bsd-0.1 sources
Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Mar 21 09:45:37 1993 UTC (31 years, 8 months ago) by cgd
Branches: MAIN
Initial revision
CVSweb <webmaster@jp.NetBSD.org>