ChangeLog revision 57416
157416Smarkm2000-02-07  Assar Westerlund  <assar@sics.se>
257416Smarkm
357416Smarkm	* ftp/security.c (sec_read): more paranoia with return value from
457416Smarkm	sec_get_data
557416Smarkm
655682Smarkm2000-01-08  Assar Westerlund  <assar@sics.se>
755682Smarkm
855682Smarkm	* ftp/ftp.c (hookup): handle ai_canonname being set in any of the
955682Smarkm	addresses returnedby getaddrinfo.  glibc apparently returns the
1055682Smarkm	reverse lookup of every address in ai_canonname.
1155682Smarkm	* ftp/ruserpass.c (guess_domain): dito
1255682Smarkm
1355682Smarkm1999-12-21  Assar Westerlund  <assar@sics.se>
1455682Smarkm
1555682Smarkm	* ftpd/ftpd.c: don't use sa_len as a parameter, it's defined on
1655682Smarkm 	Irix
1755682Smarkm
1855682Smarkm1999-12-21  Johan Danielsson  <joda@pdc.kth.se>
1955682Smarkm
2055682Smarkm	* ftpd/ftpd.c (dataconn): make sure from points to actual data
2155682Smarkm
2255682Smarkm1999-12-16  Assar Westerlund  <assar@sics.se>
2355682Smarkm
2455682Smarkm	* ftp/ruserpass.c (guess_domain): handle ai_canonname not being
2555682Smarkm	set
2655682Smarkm	* ftp/ftp.c (hookup): handle ai_canonname not being set
2755682Smarkm
2855682Smarkm1999-12-06  Assar Westerlund  <assar@sics.se>
2955682Smarkm
3055682Smarkm	* ftp/krb4.c (krb4_auth): the nat-IP address might not be realm
3155682Smarkm	bounded.
3255682Smarkm
3355682Smarkm1999-12-05  Assar Westerlund  <assar@sics.se>
3455682Smarkm
3555682Smarkm	* ftpd/ftpd.c (dolog): update prototype
3655682Smarkm	* ftpd/ftpd.c (dolog): use getnameinfo_verified
3755682Smarkm	* ftpd/ftpd.c: replace inaddr2str by getnameinfo
3855682Smarkm
3955682Smarkm1999-12-04  Assar Westerlund  <assar@sics.se>
4055682Smarkm
4155682Smarkm	* ftp/ruserpass.c (guess_domain): re-write to use getaddrinfo
4255682Smarkm	* ftp/ftp.c (hookup): re-write to use getaddrinfo
4355682Smarkm	
4455682Smarkm1999-11-30  Assar Westerlund  <assar@sics.se>
4555682Smarkm
4655682Smarkm	* ftpd/ftpd.c (getdatasock): make sure to keep the port-number of
4755682Smarkm 	the outgoing connections.  It has to be `ftp-data' or some people
4855682Smarkm 	might get upset.
4955682Smarkm
5055682Smarkm	* ftpd/ftpd.c (args): set correct variable when `-l' so that
5155682Smarkm 	logging actually works
5255682Smarkm
5355682Smarkm1999-11-29  Assar Westerlund  <assar@sics.se>
5455682Smarkm
5555682Smarkm	* ftp/security.c (sec_login): check return value from realloc
5655682Smarkm	(sec_end): set app_data to NULL
5755682Smarkm
5855682Smarkm1999-11-25  Assar Westerlund  <assar@sics.se>
5955682Smarkm
6055682Smarkm	* ftp/krb4.c (krb4_auth): obtain the `local' address when doing
6155682Smarkm	NAT.  also turn on passive mode.  From <thn@stacken.kth.se>
6255682Smarkm
6355682Smarkm1999-11-20  Assar Westerlund  <assar@sics.se>
6455682Smarkm
6555682Smarkm	* ftpd/ls.c (make_fileinfo): cast to allow for non-const
6655682Smarkm 	prototypes of readlink
6755682Smarkm
6855682Smarkm1999-11-12  Assar Westerlund  <assar@sics.se>
6955682Smarkm
7055682Smarkm	* ftpd/ftpd.c (args): use arg_counter for `l'
7155682Smarkm	
7255682Smarkm1999-11-04  Assar Westerlund  <assar@sics.se>
7355682Smarkm
7455682Smarkm	* ftpd/ls.c (S_ISSOCK, S_ISLNK): fallback definitions for systems
7555682Smarkm 	that don't have them (such as ultrix)
7655682Smarkm
7755682Smarkm1999-10-29  Assar Westerlund  <assar@sics.se>
7855682Smarkm
7955682Smarkm	* ftpd/ls.c (make_fileinfo): cast uid's and gid's to unsigned in
8055682Smarkm 	printf, we don't know what types they might be.
8155682Smarkm	(lstat_file): conditionalize the kafs part on KRB4
8255682Smarkm
8355682Smarkm	* ftpd/ftpd_locl.h: <sys/ioccom.h> is needed for kafs.h
8455682Smarkm
8555682Smarkm1999-10-28  Assar Westerlund  <assar@sics.se>
8655682Smarkm
8755682Smarkm	* ftpd/ls.c (lstat_file): don't set st_mode, it should already be
8855682Smarkm 	correct
8955682Smarkm
9055682Smarkm	* ftpd/ls.c: don't use warnx to print errors
9155682Smarkm
9255682Smarkm	* ftpd/ls.c (builtin_ls): fix typo, 'd' shouldn't imply 'f'
9355682Smarkm
9455682Smarkm	* ftpd/ls.c (lstat_file): new function for avoiding stating AFS
9555682Smarkm 	mount points.  From Love <lha@s3.kth.se>
9655682Smarkm	(list_files): use `lstat_file'
9755682Smarkm
9855682Smarkm	* ftpd/ftpd.c: some const-poisoning
9955682Smarkm
10055682Smarkm	* ftpd/ftpd.c (args): add `-B' as an alias for `--builtin-ls' to
10155682Smarkm 	allow for stupid inetds that only support two arguments.  From
10255682Smarkm 	Love <lha@s3.kth.se>
10355682Smarkm
10455682Smarkm1999-10-26  Assar Westerlund  <assar@sics.se>
10555682Smarkm
10655682Smarkm	* ftpd/ftpcmd.y (help): it's unnecessary to interpret help strings
10755682Smarkm 	as printf commands
10855682Smarkm
10955682Smarkm	* ftpd/ftpd.c (show_issue): don't interpret contents of
11055682Smarkm 	/etc/issue* as printf commands.  From Brian A May
11155682Smarkm 	<bmay@dgs.monash.edu.au>
11255682Smarkm
11355682Smarkm1999-10-21  Johan Danielsson  <joda@pdc.kth.se>
11455682Smarkm
11555682Smarkm	* ftpd/kauth.c (kauth): complain if protection level isn't
11655682Smarkm	`private'
11755682Smarkm
11855682Smarkm	* ftp/krb4.c (krb4_decode): syslog failure reason
11955682Smarkm
12055682Smarkm	* ftp/kauth.c (kauth): set private level earlier
12155682Smarkm
12255682Smarkm	* ftp/security.c: get_command_prot; (sec_prot): partially match
12355682Smarkm	`command' and `data'
12455682Smarkm
12555682Smarkm1999-10-18  Johan Danielsson  <joda@pdc.kth.se>
12655682Smarkm
12755682Smarkm	* ftpd/ftpd.c: change `-l' flag to use arg_collect (this makes
12855682Smarkm	`-ll' work again)
12955682Smarkm
13055682Smarkm	* ftpd/ftpd.c (list_file): pass filename to ls
13155682Smarkm
13255682Smarkm1999-10-04  Johan Danielsson  <joda@pdc.kth.se>
13355682Smarkm
13455682Smarkm	* ftpd/ftpcmd.y: FEAT
13555682Smarkm
13655682Smarkm1999-10-03  Assar Westerlund  <assar@sics.se>
13755682Smarkm
13855682Smarkm	* ftpd/ls.c: fall-back definitions for constans and casts for
13955682Smarkm 	printfs
14055682Smarkm
14155682Smarkm1999-10-03  Johan Danielsson  <joda@pdc.kth.se>
14255682Smarkm
14355682Smarkm	* ftpd/ftpd.c (main): make this use getarg; add `list_file'
14455682Smarkm
14555682Smarkm	* ftpd/ftpcmd.y (LIST): call list_file
14655682Smarkm
14755682Smarkm	* ftpd/ls.c: add simple built-in ls
14855682Smarkm
14955682Smarkm	* ftp/security.c: add `sec_vfprintf2' and `sec_fprintf2' that
15055682Smarkm	prints to the data stream
15155682Smarkm
15255682Smarkm	* ftp/kauth.c (kauth): make sure we're using private protection
15355682Smarkm	level
15455682Smarkm
15555682Smarkm	* ftp/security.c (set_command_prot): set command protection level
15655682Smarkm
15755682Smarkm	* ftp/security.c: make it possible to set the command protection
15855682Smarkm	level with `prot'
15955682Smarkm
16055682Smarkm1999-09-30  Assar Westerlund  <assar@sics.se>
16155682Smarkm
16255682Smarkm	* ftpd/ftpd_locl.h: add prototype for fclose to make sunos happy
16355682Smarkm
16455682Smarkm1999-08-19  Johan Danielsson  <joda@pdc.kth.se>
16555682Smarkm
16655682Smarkm	* ftpd/ftpd.c (do_login): show issue-file
16755682Smarkm	(send_data): change handling of zero-byte files
16855682Smarkm
16955682Smarkm1999-08-18  Assar Westerlund  <assar@sics.se>
17055682Smarkm
17155682Smarkm	* ftp/cmds.c (getit): be more suspicious when parsing the result
17255682Smarkm 	of MDTM.  Do the comparison of timestamps correctly.
17355682Smarkm
17455682Smarkm1999-08-13  Assar Westerlund  <assar@sics.se>
17555682Smarkm
17655682Smarkm	* ftpd/ftpd.c (send_data): avoid calling mmap with `len == 0'.
17755682Smarkm  	Some mmap:s rather dislike that (Solaris) and some munmap (Linux)
17855682Smarkm 	get grumpy later.
17955682Smarkm
18055682Smarkm	* ftp/ftp.c (copy_stream): avoid calling mmap with `len == 0'.
18155682Smarkm  	Some mmap:s rather dislike that (Solaris) and some munmap (Linux)
18255682Smarkm 	get grumpy later.
18355682Smarkm
18455682Smarkm1999-08-03  Assar Westerlund  <assar@sics.se>
18555682Smarkm
18655682Smarkm	* ftp/ftp.c (active_mode): hide failure of EPRT by setting verbose
18755682Smarkm
18855682Smarkm	* ftp/gssapi.c (gss_auth): initialize application_data in bindings
18955682Smarkm
19055682Smarkm1999-08-02  Assar Westerlund  <assar@sics.se>
19155682Smarkm
19255682Smarkm	* ftpd/ftpcmd.y: save file names when doing commands that might
19355682Smarkm 	get aborted (and longjmp:ed out of) to avoid overwriting them also
19455682Smarkm 	remove extra closing brace
19555682Smarkm
19655682Smarkm1999-08-01  Johan Danielsson  <joda@pdc.kth.se>
19755682Smarkm
19855682Smarkm	* ftpd/ftpcmd.y: change `site find' to `site locate' (to match
19955682Smarkm	what it does, and other implementations) keep find as an alias
20055682Smarkm
20155682Smarkm1999-07-28  Assar Westerlund  <assar@sics.se>
20255682Smarkm
20355682Smarkm	* common/socket.c: moved to roken
20455682Smarkm
20555682Smarkm	* common/socket.c: new file with generic socket functions
20655682Smarkm
20755682Smarkm	* ftpd/ftpd.c: make it more AF-neutral and v6-capable
20855682Smarkm
20955682Smarkm	* ftpd/ftpcmd.y: add EPRT and EPSV
21055682Smarkm
21155682Smarkm	* ftpd/extern.h: update prototypes and variables
21255682Smarkm
21355682Smarkm	* ftp/krb4.c: update to new types of addresses
21455682Smarkm
21555682Smarkm	* ftp/gssapi.c: add support for both AF_INET and AF_INET6
21655682Smarkm 	addresses
21755682Smarkm
21855682Smarkm	* ftp/ftp.c: make it more AF-neutral and v6-capable
21955682Smarkm
22055682Smarkm	* ftp/extern.h (hookup): change prototype
22155682Smarkm
22255682Smarkm	* common/common.h: add prototypes for functions in socket.c
22355682Smarkm
22455682Smarkm	* common/Makefile.am (libcommon_a_SOURCES): add socket.c
22555682Smarkm
22655682Smarkm	* ftp/gssapi.c (gss_auth): check return value from
22755682Smarkm 	`gss_import_name' and print error messages if it fails
22855682Smarkm
22955682Smarkm1999-06-15  Assar Westerlund  <assar@sics.se>
23055682Smarkm
23155682Smarkm	* ftp/krb4.c (krb4_auth): type correctness
23255682Smarkm
23355682Smarkm1999-06-02  Johan Danielsson  <joda@pdc.kth.se>
23455682Smarkm
23555682Smarkm	* ftp/ftp.c (sendrequest): lmode != rmode
23655682Smarkm	
23755682Smarkm1999-05-21  Assar Westerlund  <assar@sics.se>
23855682Smarkm
23955682Smarkm	* ftp/extern.h (sendrequest): update prototype
24055682Smarkm
24155682Smarkm	* ftp/cmds.c: update calls to sendrequest and recvrequest to send
24255682Smarkm 	"b" when appropriate
24355682Smarkm
24455682Smarkm	* ftp/ftp.c (sendrequest): add argument for mode to open file in.
24555682Smarkm
24655682Smarkm1999-05-08  Assar Westerlund  <assar@sics.se>
24755682Smarkm
24855682Smarkm	* ftpd/ftpcmd.y: rename getline -> ftpd_getline
24955682Smarkm
25055682Smarkm	* ftp/main.c (makeargv): fill in unused slots with NULL
25155682Smarkm
25255682SmarkmThu Apr  8 15:06:40 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
25355682Smarkm
25455682Smarkm	* ftpd/ftpd.c: remove definition of KRB_VERIFY_USER (moved to
25555682Smarkm 	config.h)
25655682Smarkm
25755682SmarkmWed Apr  7 16:15:21 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
25855682Smarkm
25955682Smarkm	* ftp/gssapi.c (gss_auth): call gss_display_status to get a sane
26055682Smarkm 	error message; return AUTH_{CONTINUE,ERROR}, where appropriate
26155682Smarkm
26255682Smarkm	* ftp/krb4.c: return AUTH_{CONTINUE,ERROR}, where appropriate
26355682Smarkm
26455682Smarkm	* ftp/security.c (sec_login): if mechanism returns AUTH_CONTINUE,
26555682Smarkm 	just continue with the next mechanism, this fixes the case of
26655682Smarkm 	having GSSAPI fail because of non-existant of expired tickets
26755682Smarkm
26855682Smarkm	* ftp/security.h: add AUTH_{OK,CONTINUE,ERROR}
26955682Smarkm
27055682SmarkmThu Apr  1 16:59:04 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
27155682Smarkm
27255682Smarkm	* ftpd/Makefile.am: don't run check-local
27355682Smarkm
27455682Smarkm	* ftp/Makefile.am: don't run check-local
27555682Smarkm
27655682SmarkmMon Mar 22 22:15:18 1999  Assar Westerlund  <assar@sics.se>
27755682Smarkm
27855682Smarkm	* ftpd/ftpd.c (pass): fall-back for KRB_VERIFY_SECURE
27955682Smarkm
28055682Smarkm	* ftpd/ftpd.c (pass): 1 -> KRB_VERIFY_SECURE
28155682Smarkm
28255682SmarkmThu Mar 18 12:07:09 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
28355682Smarkm
28455682Smarkm	* ftpd/Makefile.am: clean ftpcmd.c
28555682Smarkm
28655682Smarkm	* ftpd/ftpd_locl.h: remove krb5.h (breaks in ftpcmd.y)
28755682Smarkm
28855682Smarkm	* ftpd/ftpd.c: move include of krb5.h here
28955682Smarkm
29055682Smarkm	* ftpd/Makefile.am: include Makefile.am.common
29155682Smarkm
29255682Smarkm	* Makefile.am: include Makefile.am.common
29355682Smarkm
29455682Smarkm	* ftp/Makefile.am: include Makefile.am.common
29555682Smarkm
29655682Smarkm	* common/Makefile.am: include Makefile.am.common
29755682Smarkm
29855682SmarkmTue Mar 16 22:28:37 1999  Assar Westerlund  <assar@sics.se>
29955682Smarkm
30055682Smarkm	* ftpd/ftpd_locl.h: add krb5.h to get heimdal_version
30155682Smarkm
30255682Smarkm	* ftpd/ftpd.c: krb_verify_user_multiple -> krb_verify_user
30355682Smarkm
30455682SmarkmThu Mar 11 14:54:59 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
30555682Smarkm
30655682Smarkm	* ftp/Makefile.in: WFLAGS
30755682Smarkm
30855682Smarkm	* ftp/ruserpass.c: add some if-braces
30955682Smarkm
31055682SmarkmWed Mar 10 20:02:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
31155682Smarkm
31255682Smarkm	* ftpd/ftpd_locl.h: remove ifdef HAVE_FNMATCH
31355682Smarkm
31455682SmarkmMon Mar  8 21:29:24 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
31555682Smarkm
31655682Smarkm	* ftpd/ftpd.c: re-add version in greeting message
31755682Smarkm
31855682SmarkmMon Mar  1 10:49:38 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
31955682Smarkm
32055682Smarkm	* ftpd/logwtmp.c: HAVE_UT_* -> HAVE_STRUCT_UTMP*_UT_*
32155682Smarkm
32255682SmarkmMon Feb 22 19:20:51 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
32355682Smarkm
32455682Smarkm	* common/Makefile.in: remove glob
32555682Smarkm
32655682SmarkmSat Feb 13 17:19:35 1999  Assar Westerlund  <assar@sics.se>
32755682Smarkm
32855682Smarkm	* ftpd/ftpd.c (match): remove #ifdef HAVE_FNMATCH.  We have a
32955682Smarkm 	fnmatch implementation in roken and therefore always have it.
33055682Smarkm
33155682Smarkm	* ftp/ftp.c (copy_stream): initialize `werr'
33255682Smarkm
33355682SmarkmWed Jan 13 23:52:57 1999  Assar Westerlund  <assar@sics.se>
33455682Smarkm
33555682Smarkm	* ftpd/ftpcmd.y: moved all check_login and check_login_no_guest to
33655682Smarkm 	the end of the rules to ensure we don't generate several
33755682Smarkm 	(independent) error messages.  once again, having a yacc-grammar
33855682Smarkm 	for FTP with embedded actions doesn't strike me as the most
33955682Smarkm 	optimal way of doing it.
34055682Smarkm
34155682SmarkmTue Dec  1 14:44:29 1998  Johan Danielsson  <joda@hella.pdc.kth.se>
34255682Smarkm
34355682Smarkm	* ftpd/Makefile.am: link with extra libs for aix
34455682Smarkm
34555682SmarkmSun Nov 22 10:28:20 1998  Assar Westerlund  <assar@sics.se>
34655682Smarkm
34755682Smarkm	* ftpd/ftpd.c (retrying): support on-the-fly decompression
34855682Smarkm
34955682Smarkm	* ftpd/Makefile.in (WFLAGS): set
35055682Smarkm
35155682Smarkm	* ftp/ruserpass.c (guess_domain): new function
35255682Smarkm	(ruserpass): use it
35355682Smarkm
35455682Smarkm	* common/Makefile.in (WFLAGS): set
35555682Smarkm
35655682Smarkm	* Makefile.in (WFLAGS): set
35755682Smarkm
35855682SmarkmSat Nov 21 23:13:03 1998  Assar Westerlund  <assar@sics.se>
35955682Smarkm
36055682Smarkm	* ftp/security.c: some more type correctness.
36155682Smarkm
36255682Smarkm	* ftp/gssapi.c (gss_adat): more braces to shut up warnings
36355682Smarkm
36455682SmarkmWed Nov 18 21:47:55 1998  Assar Westerlund  <assar@sics.se>
36555682Smarkm
36655682Smarkm	* ftp/main.c (main): new option `-p' for enable passive mode.
36755682Smarkm
36855682SmarkmMon Nov  2 01:57:49 1998  Assar Westerlund  <assar@sics.se>
36955682Smarkm
37055682Smarkm	* ftp/ftp.c (getreply): remove extra `break'
37155682Smarkm
37255682Smarkm	* ftp/gssapi.c (gss_auth): fixo typo(copyo?)
37355682Smarkm
37455682Smarkm	* ftp/security.c (sec_login): fix loop and return value
37555682Smarkm
37655682SmarkmTue Sep  1 16:56:42 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
37755682Smarkm
37855682Smarkm	* ftp/cmds.c (quote1): fix % quoting bug
37955682Smarkm
38055682SmarkmFri Aug 14 17:10:06 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
38155682Smarkm
38255682Smarkm	* ftp/krb4.c: krb_put_int -> KRB_PUT_INT
38355682Smarkm
38455682SmarkmTue Jun 30 18:07:15 1998  Assar Westerlund  <assar@sics.se>
38555682Smarkm
38655682Smarkm	* ftp/security.c (auth): free `app_data'
38755682Smarkm	(sec_end): only destroy if it was initialized
38855682Smarkm
38955682SmarkmTue Jun  9 21:01:59 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
39055682Smarkm
39155682Smarkm	* ftp/krb4.c: pass client address to krb_rd_req
39255682Smarkm
39355682SmarkmSat May 16 00:02:07 1998  Assar Westerlund  <assar@sics.se>
39455682Smarkm
39555682Smarkm	* ftpd/Makefile.am: link with DBLIB
39655682Smarkm
39755682SmarkmTue May 12 14:15:32 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
39855682Smarkm
39955682Smarkm	* ftp/gssapi.c: Save client name for userok().
40055682Smarkm
40155682Smarkm	* ftpd/gss_userok.c: Userok for gssapi.
40255682Smarkm
40355682SmarkmFri May  1 07:15:01 1998  Assar Westerlund  <assar@sics.se>
40455682Smarkm
40555682Smarkm	* ftp/ftp.c: unifdef -DHAVE_H_ERRNO
40655682Smarkm
40755682SmarkmFri Mar 27 00:46:07 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
40855682Smarkm
40955682Smarkm	* Make compile w/o krb4.
41055682Smarkm
41155682SmarkmThu Mar 26 03:49:12 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
41255682Smarkm
41355682Smarkm	* ftp/*, ftpd/*: Changes for new framework.
41455682Smarkm
41555682Smarkm	* ftp/gssapi.c: GSS-API backend for the new security framework.
41655682Smarkm
41755682Smarkm	* ftp/krb4.c: Updated for new framework.
41855682Smarkm
41955682Smarkm	* ftp/security.{c,h}: New unified security framework.
420