x
[heimdal.git] / appl / ftp / ChangeLog
blob92a60a4e25f0fec41d4ca04a4ef5a8a15ee46132
1 2008-04-10  Love Hörnquist Åstrand  <lha@it.su.se>
3         * ftpd/logwtmp.c: Use asl for logging ftpd wtmp messages.
5 2007-07-12  Love Hörnquist Åstrand  <lha@it.su.se>
7         * ftp/gssapi.c: Fix pointer vs strict alias rules.
9 2007-06-20  Love Hörnquist Åstrand  <lha@it.su.se>
11         * ftp/security.c: if no mech have no session, its ok, just don't
12         call it.
14         * ftp/security.h: provide prototype for sec_userok().
16         * move ksetpag after initgroups to make it work on Linux when its
17         without syscall hooks to change sys_setgroups preserve the
18         pag. From Alexsander Boström.
19         
20 2007-06-09  Love Hörnquist Åstrand  <lha@it.su.se>
22         * ftpd/Makefile.am: don't clean yacc/lex files in CLEANFILES,
23         maintainers clean will do that for us.
24         
25 2006-10-07  Love Hörnquist Åstrand  <lha@it.su.se>
27         * ftpd/Makefile.am: Add man_MANS to EXTRA_DIST
29         * ftp/Makefile.am: Add man_MANS to EXTRA_DIST
30         
31 2006-08-08  Love Hörnquist Åstrand  <lha@it.su.se>
33         * ftpd/ftpd.c: Add comment by seteuid call isn't not needed.
35         * ftpd/ftpd.c: Check return values from seteuid, prompted by MIT
36         advisory.  Thanks to Tom Yu at MIT, and Michael Calmer and Marcus
37         Meissner at SUSE.  Either of CVE-2006-3083 or CVE-2006-3084.
38         
39 2006-06-27  Love Hörnquist Åstrand  <lha@it.su.se>
41         * ftpd/gss_userok.c (gss_userok): create a local krb5_context and
42         use that instead of the libgssapi context (that might not exist).
43         
44 2006-05-05  Love Hörnquist Åstrand  <lha@it.su.se>
46         * Rename u_intXX_t to uintXX_t
48 2006-03-23  Love Hörnquist Åstrand  <lha@it.su.se>
50         * ftp/ftp.1: Add undocument flags and spelling, from Ted Percival
51         <Ted.Percival@quest.com>
52         
53 2006-02-27  Johan Danielsson  <joda@pdc.kth.se>
55         * ftpd/ftpd.8: fix grammar in --no-insecure-oob option (partly
56         from Thomas Klausner)
57         
58 2006-01-24  Love Hörnquist Åstrand  <lha@it.su.se>
60         * ftp/ftp.c: Indent.
61         
62 2006-01-12  Johan Danielsson  <joda@pdc.kth.se>
64         * ftpd/ftpd.c (pass): remove unused variable in the !OTP case
65         
66 2005-10-22  Love Hörnquist Åstrand  <lha@it.su.se>
67         
68         * ftpd/ls.c: Check return value from asprintf instead of string !=
69         NULL since it undefined behavior on Linux. From Björn Sandell
71         * ftpd/gss_userok.c: Check return value from asprintf instead of
72         string != NULL since it undefined behavior on Linux. From Björn
73         Sandell
75         * ftpd/ftpd.c: Check return value from asprintf instead of string
76         != NULL since it undefined behavior on Linux. From Björn Sandell
78         * ftp/gssapi.c: Check return value from asprintf instead of string
79         != NULL since it undefined behavior on Linux. From Björn Sandell
80         
81 2005-10-12  Johan Danielsson  <joda@pdc.kth.se>
83         * ftp/ftp.1: document -x
84         
85         * ftp/security.h: implement cprotect (from MIT)
86         
87         * ftp/security.c: add -x (encrypt) option; implement cprotect
88         (from MIT); make sure we CCC if switching to clear-text command
89         channel
91         * ftp/cmdtab.c: implement cprotect (from MIT)
92         
93         * ftp/ruserpass.c: if doing command line encryption (-x), ignore
94         prot commands in .netrc
96         * ftp/ftp_var.h: add -x (encrypt) option
97         
98         * ftp/globals.c: add -x (encrypt) option
99         
100         * ftp/main.c: add -x (encrypt) option
101         
102 2005-07-19  Love Hörnquist Åstrand  <lha@it.su.se>
104         * ftpd/ftpcmd.y: Fix shadow warning.
106         * ftp/security.c: Fix shadow warning.
107         * ftp/security.c: Fix shadow warnings.
108         
109         * ftp/ruserpass.c: Fix shadow warnings.
111         * ftp/ftp.c: Fix shadow warnings.
112         
113         * ftp/cmds.c: fix shadow warnings
115         * Add Kerberos 5 klist, old patch from Tomas Nyström (remove krb4
116         support). Support klist in client for kerberos 5 clase.
117         Clean up delegation of gss tokens and do afslog.
119 2005-07-13  Love Hörnquist Åstrand  <lha@it.su.se>
121         * ftp/gssapi.c (gss_adat): avoid leaking memory
122         (gss_auth): always try next kname if there is one, independant of
123         min_stat
125         * ftp/gssapi.c: avoid const warning, use sin4 instead of sin to
126         avoid shadow warning, free target_name
128 2005-07-09  Love Hörnquist Åstrand  <lha@it.su.se>
130         * ftp/security.c: keep track of if CCC was passed
132         * ftpd/extern.h: variable to keep track of if CCC was passed
134         * ftpd/ftpcmd.y: sprinkel check_secure, check if CCC was passed in
135         check_secure
137 2005-06-02  Love Hörnquist Åstrand  <lha@it.su.se>
139         * ftpd/ftpd.c (filename_check): change signednes of p to avoid
140         warning, move typecasts
142 2005-05-29  Love Hörnquist Åstrand  <lha@it.su.se>
144         * ftpd/ftpd.c: avoid 'unused variable' warnings
146 2005-05-10  David Love  <fx@gnu.org>
148         * ftpd/pathnames.h: #ifdef protect _PATH_ISSUE
150 2005-04-25  Love Hörnquist Åstrand  <lha@it.su.se>
152         * ftp/domacro.c: handle string trunctions
154 2005-04-24  Love Hörnquist Åstrand  <lha@it.su.se>
156         * ftp/security.c: use strlcat
157         
158         * ftp/domacro.c: use strlcpy
159         
160 2005-04-20  Love Hörnquist Åstrand  <lha@it.su.se>
162         * ftp/security.c: cast size_t to unsigned long
164 2005-04-18  Love Hörnquist Åstrand  <lha@it.su.se>
166         * ftpd/ftpd.c (statcmd): cast argument to isdigit to unsigned char
168         * ftp/cmds.c (mget): cast char to unsigned char to make sure its
169         not negative when passing it to tolower
171 2005-04-07  Love Hörnquist Åstrand  <lha@it.su.se>
173         * ftp/ftp.c: fix 3 'var' might be used uninitialized warnings
175 2005-04-04 Love Hörnquist Åstrand  <lha@it.su.se>
177         * ftp/cmds.c: MacOS is also a unix that doesn't define
178         __unix__/unix While here, rewrite this part of the function to not
179         modify that string, but rather take a copy of it and them modify
180         is, all this just to pacify gcc
181         
182 2005-01-09 Love Hörnquist Åstrand  <lha@it.su.se>
184         * ftp/domacro.c: cast argument to is* to unsigned char
186         * ftp/ftp.c: cast argument to tolower to unsigned char
188 2004-08-20 Love Hörnquist Åstrand  <lha@it.su.se>
190         * ftp/ftp.c: send ABOR protect with security layer if its there
192         * ftpd/{ftpd_locl.h, extern.h, ftpcmd.y, ftpd.8, ftpd.c}:
193         Remove all traces of setjmp/longjmp.
194         Handle those command that is needed in oobhandler,
195         those are ABOR, STAT, ENC, CONF, MIC.
196         add options to turn off insecure OOB handling and document the option
198         Changes inspired by openbsd and netbsd changes but quite diffrent is
199         most places since the code no longer look and is structured the same
200         way.
202 2004-08-16  Johan Danielsson  <joda@pdc.kth.se>
204         * ftp/main.c: reverse help strings for --no-gss-bindings and
205         --no-gss-delegate
207 2004-06-20  Love Hörnquist Åstrand  <lha@it.su.se>
209         * ftpd/ftpcmd.y: make cbuf 64k to handle lager tickets From:
210         MAAAAA MOOOR <huaraz@btinternet.com>
211         
212 2004-03-14  Love Hörnquist Åstrand  <lha@it.su.se>
214         * ftpd/ftpd.c (main): setpag if there is krb4 OR krb5 support
215         
216 2003-12-19  Love Hörnquist Åstrand  <lha@it.su.se>
218         * ftp/security.h: add ftp_do_gss_delegate
219         
220         * ftp/main.c (getargs): negative flag for delegating gss creds
221         
222         * ftp/gssapi.c (ftp_do_gss_delegate): delegate creds (default on)
223         
224 2003-09-03  Love Hörnquist Åstrand  <lha@it.su.se>
226         * ftp/ftp.c: s/des_read_pw_string/UI_UTIL_read_pw_string/
227         
228         * ftp/cmds.c: s/des_read_pw_string/UI_UTIL_read_pw_string/
229         
230 2003-07-19  Love Hörnquist Åstrand  <lha@it.su.se>
232         * ftp/security.h: add ftp_do_gss_bindings
233         
234         * ftp/ftp.1: fix mdoc bug
235         
236         * ftp/ftp.1: document --no-gss-bindings
238         * ftp/gssapi.c: Optionally support gss bindings, client does it by
239         default, server not.  This is to make it work for clients behind
240         NAT.
242         * ftp/main.c (args): add gss-bindings
243         (main): set ftp_do_gss_bindings to 1 to make client use them
245         * ftpd/ftpd.c (args): add gss-bindings
246         
247         * ftpd/ftpd.8: document --gss-bindings
248         
249 2003-06-13  Johan Danielsson  <joda@pdc.kth.se>
251         * ftp/gssapi.c (gss_adat): fix name allocation bug
253 2003-05-21  Love Hörnquist Åstrand  <lha@it.su.se>
255         * ftpd/gss_userok.c (gss_userok): release delegated cred handle
256         
257         * ftp/gssapi.c (gss_adat): remove poking inside the delegated
258         handle, also fixes problem where to much memory was allocated
259         
260         * ftpd/gss_userok.c (gss_userok): remove poking inside the
261         delegated handle
263 2003-05-14  Love Hörnquist Åstrand  <lha@it.su.se>
265         * ftpd/ftpcmd.y: support afslog <cell> and afslog when compiled
266         with krb5
268 2003-05-07  Love Hörnquist Åstrand  <lha@it.su.se>
270         * ftp/cmdtab.c: include afslog in both the krb4 and krb5 case
271         
272         * ftp/kauth.c: include afslog in both the krb4 and krb5 case
273         
274         * ftp/Makefile.am: always include auth.c
275         
276 2003-05-07  Love Hörnquist Åstrand  <lha@it.su.se>
277         
278         * ftpd/Makefile.am: always include auth.c
280         * ftpd/kauth.c: do afslog in the krb5 case too
281         
282 2003-04-22  Love Hörnquist Åstrand  <lha@it.su.se>
284         * ftp/ftp.1: replace > with \*[Gt]
285         
286 2003-04-16  Love Hörnquist Åstrand  <lha@it.su.se>
288         * ftpd/ftpd.c: make sure argument to is* functions are unsigned
289         
290 2003-04-06  Love Hörnquist Åstrand  <lha@it.su.se>
292         * ftpd/ftpd.8: s/kerberos/Kerberos/
293         
294 2003-03-23  Assar Westerlund  <assar@kth.se>
296         * ftpd/pathnames.h (_PATH_FTPUSERS): conditionalize
298 2003-03-18  Love Hörnquist Åstrand  <lha@it.su.se>
300         * ftpd/ftpd.c (krb5_verify): always do krb5_afslog, remove setpag
301         (its done in main)
303         * ftpd/gss_userok.c: drop setpag
304         
305         * ftpd/ftpd.c (main): set afs PAG
307         * ftpd/gss_userok.c: always try krb5_afslog, and while here do a
308         setpag too
310         * ftpd/ftpd_locl.h: always include kafs
311         
312 2003-03-16  Love Hörnquist Åstrand  <lha@it.su.se>
314         * ftp/gssapi.c (gss_adat): now that gss_export_name exports a
315         principal, bandaid with gss_display_name, and check that oid is
316         GSS_KRB5_NT_PRINCIPAL_NAME, also free memory
317         
318 2003-02-25  Love Hörnquist Åstrand  <lha@it.su.se>
320         * ftp/gssapi.c (gss_auth): print out the name we authenticated too
321         
322 2003-02-25  Love Hörnquist Åstrand  <lha@it.su.se>
324         * ftpd/ls.c: use readlink with bufsize - 1, From NetBSD
326         * ftp/ftp.1: s/utilizes/uses/ from NetBSD
327         
328         * ftpd/ftpd.8: s/utilize/use/ from NetBSD
329         
330 2003-02-10  Assar Westerlund  <assar@kth.se>
332         * ftpd/ftpd.c (accept_with_timeout): use socklen_t
334 2002-10-29  Johan Danielsson  <joda@pdc.kth.se>
336         * ftp/main.c: reinstate -n flag (from Torbjörn Granlund)
338 2002-10-16  Johan Danielsson  <joda@pdc.kth.se>
340         * ftp/ftp.c: fix parsing of epsv ports (from Love)
342 2002-09-05  Johan Danielsson  <joda@pdc.kth.se>
344         * ftp/security.c (sec_vfprintf): free encoded data
346         * ftp/gssapi.c (gss_decode): release buffer
348         * ftp/ftp.c (active_mode): no need to allocate buffer for EPRT
350 2002-08-28  Johan Danielsson  <joda@pdc.kth.se>
352         * ftp/ftp.c (command): clean up va_{start,end}ing (from NetBSD)
354 2002-08-23  Assar Westerlund  <assar@kth.se>
356         * ftp/main.c: start using getarg
358 2002-08-22  Johan Danielsson  <joda@pdc.kth.se>
360         * ftpd/ls.c: uxp/v lacks _S_IFMT, but has S_IFMT
362 2002-08-20  Johan Danielsson  <joda@pdc.kth.se>
364         * ftp/gssapi.c: remove unused variable
366 2002-04-24  Johan Danielsson  <joda@pdc.kth.se>
368         * ftp/ftp.c: fix buffer overrun when receiving long replies
370 2002-04-02  Johan Danielsson  <joda@pdc.kth.se>
372         * ftpd/popen.c: make sure gl_pathc != 0 before referencing
373         gl_pathv
375 2002-03-15  Johan Danielsson  <joda@pdc.kth.se>
377         * ftp/gssapi.c (gss_adat): if accept_sec_context fails, syslog a
378         reason and give a temporary error message
380 2002-02-28  Johan Danielsson  <joda@pdc.kth.se>
382         * ftpd/ftpd.c: if builtin_ls failes, return error
384         * ftpd/ls.c (builtin_ls): return status; also don't print fatal
385         error messages to the output stream, instead use syslog
387 2001-09-14  Johan Danielsson  <joda@pdc.kth.se>
389         * ftpd/ls.c: make sure we don't include . in recursive listings
391 2001-09-13  Johan Danielsson  <joda@pdc.kth.se>
393         * ftpd/ftpd.c (dataconn): don't wait forever on accept
395 2001-09-04  Assar Westerlund  <assar@sics.se>
397         * ftp/gssapi.c (gss_adat): leak less memory and check return value
398         from asprintf
400 2001-08-28  Jacques Vidrine <n@nectar.com>
402         * ftpd/ftpd.c, ftpd/ftpd.8: On systems with IP_PORTRANGE, have
403           ftpd use `high-numbered' ports by default.  Add a -U option
404           to get the old behavior.
406 2001-08-28  Johan Danielsson  <joda@pdc.kth.se>
408         * ftp/gssapi.c: try using "host" if there's no "ftp" principal
410 2001-08-26  Johan Danielsson  <joda@pdc.kth.se>
412         * ftpd/ls.c: implement -R
414 2001-08-08  Assar Westerlund  <assar@sics.se>
416         * ftpd/ls.c: make -a and -A do the same as in ls(1)
418 2001-08-05  Assar Westerlund  <assar@sics.se>
420         * ftpd/ftpcmd.y: add some (unsigned char) casts to is*
421         * ftp/cmds.c: add some (unsigned char) casts to is*
422         * ftpd/gss_userok.c (gss_userok): make argument to printf type
423         correct
425 2001-08-05  Assar Westerlund  <assar@sics.se>
427         * ftp/cmds.c (setpeer): __NetBSD__ is also a unix-like OS
429 2001-06-19  Assar Westerlund  <assar@sics.se>
431         * ftpd/popen.c, ftpd/ftpd.c: try to handle GLOB_MAXPATH (FreeBSD)
433 2001-04-19  Johan Danielsson  <joda@pdc.kth.se>
435         * ftpd/ftpd.c (do_store): call closefunc before claiming that
436         everything went ok, if the close fails the file might not have
437         been stored properly
439 2001-03-26  Assar Westerlund  <assar@sics.se>
441         * ftpd/ftpd.c, ftpd/popen.c: always use GLOB_LIMIT
442         * ftpd/popen.c (ftpd_popen): use GLOB_LIMIT if defined
443         * ftpd/ftpd.c (send_file_list): use GLOB_LIMIT if defined
445 2001-02-15  Assar Westerlund  <assar@sics.se>
447         * ftp/cmds.c (setpeer): handle both service names and port numbers
448         for the second optional argument.  also make parsing more robust
450 2001-02-07  Assar Westerlund  <assar@sics.se>
452         * ftp/security.c (sec_end): only clean app_data if there is any
453         (*): do realloc consistently
455 2001-02-05  Assar Westerlund  <assar@sics.se>
457         * ftpd/popen.c (ftpd_popen): avoid overwriting the bounds of argv
458         and gargv
460 2001-01-30  Assar Westerlund  <assar@sics.se>
462         * ftpd/gss_userok.c: use gss_krb5_copy_ccache
464 2001-01-29  Assar Westerlund  <assar@sics.se>
466         * ftpd/Makefile.am: move up LIB_otp so we do not end up picking
467         one from /usr/athena
469 2001-01-25  Johan Danielsson  <joda@pdc.kth.se>
471         * ftpd/ls.c: fix bug in previous; make it easier to build test
472         version
474 2001-01-19  Johan Danielsson  <joda@pdc.kth.se>
476         * ftpd/ls.c (lstat_file): handle case where file lives in `/'
478 2001-01-18  Johan Danielsson  <joda@pdc.kth.se>
480         * ftpd/ftpd.c (pasv): close already open passive port
482 2000-12-14  Johan Danielsson  <joda@pdc.kth.se>
484         * ftpd/ls.c: reverse time and size sort order (pointed out by
485         tege)
487 2000-12-11  Johan Danielsson  <joda@pdc.kth.se>
489         * ftpd/ftpd.c: make it possible to set list of good filename
490         characters from command line
492 2000-12-10  Johan Danielsson  <joda@pdc.kth.se>
494         * ftpd/ftpd.c: some spec-violating mirror software assumes that
495         you can do things like `LIST -CF'; don't pass `--' to ls so this
496         actually works
498         * ftpd/ls.c: implement -1CFx flags
500 2000-12-08  Assar Westerlund  <assar@sics.se>
502         * ftpd/gss_userok.c (gss_userok): handle getpwnam failing
503         * ftp/gssapi.c (gss_auth): be more explicit in error message
505 2000-11-29  Johan Danielsson  <joda@pdc.kth.se>
507         * ftpd/ftpd.8: close list
509 2000-11-15  Assar Westerlund  <assar@sics.se>
511         * ftp/main.c: add `-l' for no line-editing
512         * ftp/globals.c (readline): add
513         * ftp/ftp_var.h (lineedit): add variable indicated if we should
514         use readline
516 2000-11-09  Johan Danielsson  <joda@pdc.kth.se>
518         * ftp/security.c (sec_read): fix bug in previous (from Jacques A.
519         Vidrine <n@nectar.com>)
521 2000-11-05  Johan Danielsson  <joda@pdc.kth.se>
523         * ftpd/ftpcmd.y: only allow pasv if logged in
525 2000-10-23  Johan Danielsson  <joda@pdc.kth.se>
527         * ftpd/ftpd.c: change bad filename message slightly
529         * common/buffer.c: HAVE_ST_BLKSIZE -> HAVE_STRUCT_STAT_ST_BLKSIZE
531 2000-10-08  Assar Westerlund  <assar@sics.se>
533         * ftp/ftp.c (*): check that fds are not too large to select on
534         * ftp/main.c (cmdscanner): print a newline upon EOF
536 2000-09-19  Assar Westerlund  <assar@sics.se>
538         * ftp/security.h: add some attributes to prototypes of sec*
539         * ftp/extern.h (command): add attributes
541 2000-08-31  Johan Danielsson  <joda@pdc.kth.se>
543         * ftpd/ftpd.c: change redundant password message to something
544         people can understand
546 2000-07-27  Assar Westerlund  <assar@sics.se>
548         * ftpd/gss_userok.c (gss_userok): only do AFS iff KRB4
549         * ftpd/ftpd.c (krb5_verify): only do AFS stuff if KRB4
551 2000-07-07  Assar Westerlund  <assar@sics.se>
553         * ftpd/ftpd.c: do not call setproctitle with a variable as the
554         format string
556 2000-07-01  Assar Westerlund  <assar@sics.se>
558         * ftpd/ftpd_locl.h: krb5.h before kafs.h
559         * ftpd/ftpd.c (krb5_verify): static-ize
560         * ftpd/ftpd.c (krb5_verify): conditionalize on KRB5
562 2000-06-21  Assar Westerlund  <assar@sics.se>
564         * ftpd: support for authenticating passwords with krb5, by Daniel
565         Kouril <kouril@ics.muni.cz>
567 2000-06-06  Johan Danielsson  <joda@pdc.kth.se>
569         * ftpd/ftpcmd.y: change unix test to be negative
570         
571 2000-05-18  Assar Westerlund  <assar@sics.se>
573         * ftpd/ftpd.c (args): should use `debug'.  From Onno van der
574         Linden <onno@simplex.nl>.
576 2000-04-25  Assar Westerlund  <assar@sics.se>
578         * ftp/ftp.c (login): re-structure code so that we prompt for
579         password for ftp/anonymous
581 2000-04-11  Assar Westerlund  <assar@sics.se>
583         * ftp/ftp.c (login): initialize tmp before calling fgets
585 2000-04-02  Assar Westerlund  <assar@sics.se>
587         * ftpd/ls.c: rename all st_mtime variables to avoid conflict with
588         #define.
589         * ftpd/ftpcmd.y: rename all st_mtime variables to avoid conflict
590         with #define.
591         * ftp/cmds.c: rename all st_mtime variables to avoid conflict with
592         #define.
594 2000-03-26  Assar Westerlund  <assar@sics.se>
596         * ftpd/ls.c, ftpd/ftpcmd.y, ftp/cmds.c: make sure to always call
597         time, ctime, and gmtime with `time_t's.  there were some types
598         (like in lastlog) that we believed to always be time_t.  this has
599         proven wrong on Solaris 8 in 64-bit mode, where they are stored as
600         32-bit quantities but time_t has gone up to 64 bits
602 2000-03-09  Johan Danielsson  <joda@pdc.kth.se>
604         * call list_file for broken usages of nlst too
606         * ftpd/ftpd.c: call list_file for broken usages of nlst too
608 2000-02-07  Assar Westerlund  <assar@sics.se>
610         * ftp/security.c (sec_read): more paranoia with return value from
611         sec_get_data
613 2000-01-08  Assar Westerlund  <assar@sics.se>
615         * ftp/ftp.c (hookup): handle ai_canonname being set in any of the
616         addresses returnedby getaddrinfo.  glibc apparently returns the
617         reverse lookup of every address in ai_canonname.
618         * ftp/ruserpass.c (guess_domain): dito
620 1999-12-21  Assar Westerlund  <assar@sics.se>
622         * ftpd/ftpd.c: don't use sa_len as a parameter, it's defined on
623         Irix
625 1999-12-21  Johan Danielsson  <joda@pdc.kth.se>
627         * ftpd/ftpd.c (dataconn): make sure from points to actual data
629 1999-12-16  Assar Westerlund  <assar@sics.se>
631         * ftp/ruserpass.c (guess_domain): handle ai_canonname not being
632         set
633         * ftp/ftp.c (hookup): handle ai_canonname not being set
635 1999-12-06  Assar Westerlund  <assar@sics.se>
637         * ftp/krb4.c (krb4_auth): the nat-IP address might not be realm
638         bounded.
640 1999-12-05  Assar Westerlund  <assar@sics.se>
642         * ftpd/ftpd.c (dolog): update prototype
643         * ftpd/ftpd.c (dolog): use getnameinfo_verified
644         * ftpd/ftpd.c: replace inaddr2str by getnameinfo
646 1999-12-04  Assar Westerlund  <assar@sics.se>
648         * ftp/ruserpass.c (guess_domain): re-write to use getaddrinfo
649         * ftp/ftp.c (hookup): re-write to use getaddrinfo
650         
651 1999-11-30  Assar Westerlund  <assar@sics.se>
653         * ftpd/ftpd.c (getdatasock): make sure to keep the port-number of
654         the outgoing connections.  It has to be `ftp-data' or some people
655         might get upset.
657         * ftpd/ftpd.c (args): set correct variable when `-l' so that
658         logging actually works
660 1999-11-29  Assar Westerlund  <assar@sics.se>
662         * ftp/security.c (sec_login): check return value from realloc
663         (sec_end): set app_data to NULL
665 1999-11-25  Assar Westerlund  <assar@sics.se>
667         * ftp/krb4.c (krb4_auth): obtain the `local' address when doing
668         NAT.  also turn on passive mode.  From <thn@stacken.kth.se>
670 1999-11-20  Assar Westerlund  <assar@sics.se>
672         * ftpd/ls.c (make_fileinfo): cast to allow for non-const
673         prototypes of readlink
675 1999-11-12  Assar Westerlund  <assar@sics.se>
677         * ftpd/ftpd.c (args): use arg_counter for `l'
678         
679 1999-11-04  Assar Westerlund  <assar@sics.se>
681         * ftpd/ls.c (S_ISSOCK, S_ISLNK): fallback definitions for systems
682         that don't have them (such as ultrix)
684 1999-10-29  Assar Westerlund  <assar@sics.se>
686         * ftpd/ls.c (make_fileinfo): cast uid's and gid's to unsigned in
687         printf, we don't know what types they might be.
688         (lstat_file): conditionalize the kafs part on KRB4
690         * ftpd/ftpd_locl.h: <sys/ioccom.h> is needed for kafs.h
692 1999-10-28  Assar Westerlund  <assar@sics.se>
694         * ftpd/ls.c (lstat_file): don't set st_mode, it should already be
695         correct
697         * ftpd/ls.c: don't use warnx to print errors
699         * ftpd/ls.c (builtin_ls): fix typo, 'd' shouldn't imply 'f'
701         * ftpd/ls.c (lstat_file): new function for avoiding stating AFS
702         mount points.  From Love <lha@s3.kth.se>
703         (list_files): use `lstat_file'
705         * ftpd/ftpd.c: some const-poisoning
707         * ftpd/ftpd.c (args): add `-B' as an alias for `--builtin-ls' to
708         allow for stupid inetds that only support two arguments.  From
709         Love <lha@s3.kth.se>
711 1999-10-26  Assar Westerlund  <assar@sics.se>
713         * ftpd/ftpcmd.y (help): it's unnecessary to interpret help strings
714         as printf commands
716         * ftpd/ftpd.c (show_issue): don't interpret contents of
717         /etc/issue* as printf commands.  From Brian A May
718         <bmay@dgs.monash.edu.au>
720 1999-10-21  Johan Danielsson  <joda@pdc.kth.se>
722         * ftpd/kauth.c (kauth): complain if protection level isn't
723         `private'
725         * ftp/krb4.c (krb4_decode): syslog failure reason
727         * ftp/kauth.c (kauth): set private level earlier
729         * ftp/security.c: get_command_prot; (sec_prot): partially match
730         `command' and `data'
732 1999-10-18  Johan Danielsson  <joda@pdc.kth.se>
734         * ftpd/ftpd.c: change `-l' flag to use arg_collect (this makes
735         `-ll' work again)
737         * ftpd/ftpd.c (list_file): pass filename to ls
739 1999-10-04  Johan Danielsson  <joda@pdc.kth.se>
741         * ftpd/ftpcmd.y: FEAT
743 1999-10-03  Assar Westerlund  <assar@sics.se>
745         * ftpd/ls.c: fall-back definitions for constans and casts for
746         printfs
748 1999-10-03  Johan Danielsson  <joda@pdc.kth.se>
750         * ftpd/ftpd.c (main): make this use getarg; add `list_file'
752         * ftpd/ftpcmd.y (LIST): call list_file
754         * ftpd/ls.c: add simple built-in ls
756         * ftp/security.c: add `sec_vfprintf2' and `sec_fprintf2' that
757         prints to the data stream
759         * ftp/kauth.c (kauth): make sure we're using private protection
760         level
762         * ftp/security.c (set_command_prot): set command protection level
764         * ftp/security.c: make it possible to set the command protection
765         level with `prot'
767 1999-09-30  Assar Westerlund  <assar@sics.se>
769         * ftpd/ftpd_locl.h: add prototype for fclose to make sunos happy
771 1999-08-19  Johan Danielsson  <joda@pdc.kth.se>
773         * ftpd/ftpd.c (do_login): show issue-file
774         (send_data): change handling of zero-byte files
776 1999-08-18  Assar Westerlund  <assar@sics.se>
778         * ftp/cmds.c (getit): be more suspicious when parsing the result
779         of MDTM.  Do the comparison of timestamps correctly.
781 1999-08-13  Assar Westerlund  <assar@sics.se>
783         * ftpd/ftpd.c (send_data): avoid calling mmap with `len == 0'.
784         Some mmap:s rather dislike that (Solaris) and some munmap (Linux)
785         get grumpy later.
787         * ftp/ftp.c (copy_stream): avoid calling mmap with `len == 0'.
788         Some mmap:s rather dislike that (Solaris) and some munmap (Linux)
789         get grumpy later.
791 1999-08-03  Assar Westerlund  <assar@sics.se>
793         * ftp/ftp.c (active_mode): hide failure of EPRT by setting verbose
795         * ftp/gssapi.c (gss_auth): initialize application_data in bindings
797 1999-08-02  Assar Westerlund  <assar@sics.se>
799         * ftpd/ftpcmd.y: save file names when doing commands that might
800         get aborted (and longjmp:ed out of) to avoid overwriting them also
801         remove extra closing brace
803 1999-08-01  Johan Danielsson  <joda@pdc.kth.se>
805         * ftpd/ftpcmd.y: change `site find' to `site locate' (to match
806         what it does, and other implementations) keep find as an alias
808 1999-07-28  Assar Westerlund  <assar@sics.se>
810         * common/socket.c: moved to roken
812         * common/socket.c: new file with generic socket functions
814         * ftpd/ftpd.c: make it more AF-neutral and v6-capable
816         * ftpd/ftpcmd.y: add EPRT and EPSV
818         * ftpd/extern.h: update prototypes and variables
820         * ftp/krb4.c: update to new types of addresses
822         * ftp/gssapi.c: add support for both AF_INET and AF_INET6
823         addresses
825         * ftp/ftp.c: make it more AF-neutral and v6-capable
827         * ftp/extern.h (hookup): change prototype
829         * common/common.h: add prototypes for functions in socket.c
831         * common/Makefile.am (libcommon_a_SOURCES): add socket.c
833         * ftp/gssapi.c (gss_auth): check return value from
834         `gss_import_name' and print error messages if it fails
836 1999-06-15  Assar Westerlund  <assar@sics.se>
838         * ftp/krb4.c (krb4_auth): type correctness
840 1999-06-02  Johan Danielsson  <joda@pdc.kth.se>
842         * ftp/ftp.c (sendrequest): lmode != rmode
843         
844 1999-05-21  Assar Westerlund  <assar@sics.se>
846         * ftp/extern.h (sendrequest): update prototype
848         * ftp/cmds.c: update calls to sendrequest and recvrequest to send
849         "b" when appropriate
851         * ftp/ftp.c (sendrequest): add argument for mode to open file in.
853 1999-05-08  Assar Westerlund  <assar@sics.se>
855         * ftpd/ftpcmd.y: rename getline -> ftpd_getline
857         * ftp/main.c (makeargv): fill in unused slots with NULL
859 Thu Apr  8 15:06:40 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
861         * ftpd/ftpd.c: remove definition of KRB_VERIFY_USER (moved to
862         config.h)
864 Wed Apr  7 16:15:21 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
866         * ftp/gssapi.c (gss_auth): call gss_display_status to get a sane
867         error message; return AUTH_{CONTINUE,ERROR}, where appropriate
869         * ftp/krb4.c: return AUTH_{CONTINUE,ERROR}, where appropriate
871         * ftp/security.c (sec_login): if mechanism returns AUTH_CONTINUE,
872         just continue with the next mechanism, this fixes the case of
873         having GSSAPI fail because of non-existant of expired tickets
875         * ftp/security.h: add AUTH_{OK,CONTINUE,ERROR}
877 Thu Apr  1 16:59:04 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
879         * ftpd/Makefile.am: don't run check-local
881         * ftp/Makefile.am: don't run check-local
883 Mon Mar 22 22:15:18 1999  Assar Westerlund  <assar@sics.se>
885         * ftpd/ftpd.c (pass): fall-back for KRB_VERIFY_SECURE
887         * ftpd/ftpd.c (pass): 1 -> KRB_VERIFY_SECURE
889 Thu Mar 18 12:07:09 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
891         * ftpd/Makefile.am: clean ftpcmd.c
893         * ftpd/ftpd_locl.h: remove krb5.h (breaks in ftpcmd.y)
895         * ftpd/ftpd.c: move include of krb5.h here
897         * ftpd/Makefile.am: include Makefile.am.common
899         * Makefile.am: include Makefile.am.common
901         * ftp/Makefile.am: include Makefile.am.common
903         * common/Makefile.am: include Makefile.am.common
905 Tue Mar 16 22:28:37 1999  Assar Westerlund  <assar@sics.se>
907         * ftpd/ftpd_locl.h: add krb5.h to get heimdal_version
909         * ftpd/ftpd.c: krb_verify_user_multiple -> krb_verify_user
911 Thu Mar 11 14:54:59 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
913         * ftp/Makefile.in: WFLAGS
915         * ftp/ruserpass.c: add some if-braces
917 Wed Mar 10 20:02:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
919         * ftpd/ftpd_locl.h: remove ifdef HAVE_FNMATCH
921 Mon Mar  8 21:29:24 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
923         * ftpd/ftpd.c: re-add version in greeting message
925 Mon Mar  1 10:49:38 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
927         * ftpd/logwtmp.c: HAVE_UT_* -> HAVE_STRUCT_UTMP*_UT_*
929 Mon Feb 22 19:20:51 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
931         * common/Makefile.in: remove glob
933 Sat Feb 13 17:19:35 1999  Assar Westerlund  <assar@sics.se>
935         * ftpd/ftpd.c (match): remove #ifdef HAVE_FNMATCH.  We have a
936         fnmatch implementation in roken and therefore always have it.
938         * ftp/ftp.c (copy_stream): initialize `werr'
940 Wed Jan 13 23:52:57 1999  Assar Westerlund  <assar@sics.se>
942         * ftpd/ftpcmd.y: moved all check_login and check_login_no_guest to
943         the end of the rules to ensure we don't generate several
944         (independent) error messages.  once again, having a yacc-grammar
945         for FTP with embedded actions doesn't strike me as the most
946         optimal way of doing it.
948 Tue Dec  1 14:44:29 1998  Johan Danielsson  <joda@hella.pdc.kth.se>
950         * ftpd/Makefile.am: link with extra libs for aix
952 Sun Nov 22 10:28:20 1998  Assar Westerlund  <assar@sics.se>
954         * ftpd/ftpd.c (retrying): support on-the-fly decompression
956         * ftpd/Makefile.in (WFLAGS): set
958         * ftp/ruserpass.c (guess_domain): new function
959         (ruserpass): use it
961         * common/Makefile.in (WFLAGS): set
963         * Makefile.in (WFLAGS): set
965 Sat Nov 21 23:13:03 1998  Assar Westerlund  <assar@sics.se>
967         * ftp/security.c: some more type correctness.
969         * ftp/gssapi.c (gss_adat): more braces to shut up warnings
971 Wed Nov 18 21:47:55 1998  Assar Westerlund  <assar@sics.se>
973         * ftp/main.c (main): new option `-p' for enable passive mode.
975 Mon Nov  2 01:57:49 1998  Assar Westerlund  <assar@sics.se>
977         * ftp/ftp.c (getreply): remove extra `break'
979         * ftp/gssapi.c (gss_auth): fixo typo(copyo?)
981         * ftp/security.c (sec_login): fix loop and return value
983 Tue Sep  1 16:56:42 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
985         * ftp/cmds.c (quote1): fix % quoting bug
987 Fri Aug 14 17:10:06 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
989         * ftp/krb4.c: krb_put_int -> KRB_PUT_INT
991 Tue Jun 30 18:07:15 1998  Assar Westerlund  <assar@sics.se>
993         * ftp/security.c (auth): free `app_data'
994         (sec_end): only destroy if it was initialized
996 Tue Jun  9 21:01:59 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
998         * ftp/krb4.c: pass client address to krb_rd_req
1000 Sat May 16 00:02:07 1998  Assar Westerlund  <assar@sics.se>
1002         * ftpd/Makefile.am: link with DBLIB
1004 Tue May 12 14:15:32 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1006         * ftp/gssapi.c: Save client name for userok().
1008         * ftpd/gss_userok.c: Userok for gssapi.
1010 Fri May  1 07:15:01 1998  Assar Westerlund  <assar@sics.se>
1012         * ftp/ftp.c: unifdef -DHAVE_H_ERRNO
1014 Fri Mar 27 00:46:07 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1016         * Make compile w/o krb4.
1018 Thu Mar 26 03:49:12 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
1020         * ftp/*, ftpd/*: Changes for new framework.
1022         * ftp/gssapi.c: GSS-API backend for the new security framework.
1024         * ftp/krb4.c: Updated for new framework.
1026         * ftp/security.{c,h}: New unified security framework.