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