ChangeLog revision 57416
12000-02-07  Assar Westerlund  <assar@sics.se>
2
3	* ftp/security.c (sec_read): more paranoia with return value from
4	sec_get_data
5
62000-01-08  Assar Westerlund  <assar@sics.se>
7
8	* ftp/ftp.c (hookup): handle ai_canonname being set in any of the
9	addresses returnedby getaddrinfo.  glibc apparently returns the
10	reverse lookup of every address in ai_canonname.
11	* ftp/ruserpass.c (guess_domain): dito
12
131999-12-21  Assar Westerlund  <assar@sics.se>
14
15	* ftpd/ftpd.c: don't use sa_len as a parameter, it's defined on
16 	Irix
17
181999-12-21  Johan Danielsson  <joda@pdc.kth.se>
19
20	* ftpd/ftpd.c (dataconn): make sure from points to actual data
21
221999-12-16  Assar Westerlund  <assar@sics.se>
23
24	* ftp/ruserpass.c (guess_domain): handle ai_canonname not being
25	set
26	* ftp/ftp.c (hookup): handle ai_canonname not being set
27
281999-12-06  Assar Westerlund  <assar@sics.se>
29
30	* ftp/krb4.c (krb4_auth): the nat-IP address might not be realm
31	bounded.
32
331999-12-05  Assar Westerlund  <assar@sics.se>
34
35	* ftpd/ftpd.c (dolog): update prototype
36	* ftpd/ftpd.c (dolog): use getnameinfo_verified
37	* ftpd/ftpd.c: replace inaddr2str by getnameinfo
38
391999-12-04  Assar Westerlund  <assar@sics.se>
40
41	* ftp/ruserpass.c (guess_domain): re-write to use getaddrinfo
42	* ftp/ftp.c (hookup): re-write to use getaddrinfo
43	
441999-11-30  Assar Westerlund  <assar@sics.se>
45
46	* ftpd/ftpd.c (getdatasock): make sure to keep the port-number of
47 	the outgoing connections.  It has to be `ftp-data' or some people
48 	might get upset.
49
50	* ftpd/ftpd.c (args): set correct variable when `-l' so that
51 	logging actually works
52
531999-11-29  Assar Westerlund  <assar@sics.se>
54
55	* ftp/security.c (sec_login): check return value from realloc
56	(sec_end): set app_data to NULL
57
581999-11-25  Assar Westerlund  <assar@sics.se>
59
60	* ftp/krb4.c (krb4_auth): obtain the `local' address when doing
61	NAT.  also turn on passive mode.  From <thn@stacken.kth.se>
62
631999-11-20  Assar Westerlund  <assar@sics.se>
64
65	* ftpd/ls.c (make_fileinfo): cast to allow for non-const
66 	prototypes of readlink
67
681999-11-12  Assar Westerlund  <assar@sics.se>
69
70	* ftpd/ftpd.c (args): use arg_counter for `l'
71	
721999-11-04  Assar Westerlund  <assar@sics.se>
73
74	* ftpd/ls.c (S_ISSOCK, S_ISLNK): fallback definitions for systems
75 	that don't have them (such as ultrix)
76
771999-10-29  Assar Westerlund  <assar@sics.se>
78
79	* ftpd/ls.c (make_fileinfo): cast uid's and gid's to unsigned in
80 	printf, we don't know what types they might be.
81	(lstat_file): conditionalize the kafs part on KRB4
82
83	* ftpd/ftpd_locl.h: <sys/ioccom.h> is needed for kafs.h
84
851999-10-28  Assar Westerlund  <assar@sics.se>
86
87	* ftpd/ls.c (lstat_file): don't set st_mode, it should already be
88 	correct
89
90	* ftpd/ls.c: don't use warnx to print errors
91
92	* ftpd/ls.c (builtin_ls): fix typo, 'd' shouldn't imply 'f'
93
94	* ftpd/ls.c (lstat_file): new function for avoiding stating AFS
95 	mount points.  From Love <lha@s3.kth.se>
96	(list_files): use `lstat_file'
97
98	* ftpd/ftpd.c: some const-poisoning
99
100	* ftpd/ftpd.c (args): add `-B' as an alias for `--builtin-ls' to
101 	allow for stupid inetds that only support two arguments.  From
102 	Love <lha@s3.kth.se>
103
1041999-10-26  Assar Westerlund  <assar@sics.se>
105
106	* ftpd/ftpcmd.y (help): it's unnecessary to interpret help strings
107 	as printf commands
108
109	* ftpd/ftpd.c (show_issue): don't interpret contents of
110 	/etc/issue* as printf commands.  From Brian A May
111 	<bmay@dgs.monash.edu.au>
112
1131999-10-21  Johan Danielsson  <joda@pdc.kth.se>
114
115	* ftpd/kauth.c (kauth): complain if protection level isn't
116	`private'
117
118	* ftp/krb4.c (krb4_decode): syslog failure reason
119
120	* ftp/kauth.c (kauth): set private level earlier
121
122	* ftp/security.c: get_command_prot; (sec_prot): partially match
123	`command' and `data'
124
1251999-10-18  Johan Danielsson  <joda@pdc.kth.se>
126
127	* ftpd/ftpd.c: change `-l' flag to use arg_collect (this makes
128	`-ll' work again)
129
130	* ftpd/ftpd.c (list_file): pass filename to ls
131
1321999-10-04  Johan Danielsson  <joda@pdc.kth.se>
133
134	* ftpd/ftpcmd.y: FEAT
135
1361999-10-03  Assar Westerlund  <assar@sics.se>
137
138	* ftpd/ls.c: fall-back definitions for constans and casts for
139 	printfs
140
1411999-10-03  Johan Danielsson  <joda@pdc.kth.se>
142
143	* ftpd/ftpd.c (main): make this use getarg; add `list_file'
144
145	* ftpd/ftpcmd.y (LIST): call list_file
146
147	* ftpd/ls.c: add simple built-in ls
148
149	* ftp/security.c: add `sec_vfprintf2' and `sec_fprintf2' that
150	prints to the data stream
151
152	* ftp/kauth.c (kauth): make sure we're using private protection
153	level
154
155	* ftp/security.c (set_command_prot): set command protection level
156
157	* ftp/security.c: make it possible to set the command protection
158	level with `prot'
159
1601999-09-30  Assar Westerlund  <assar@sics.se>
161
162	* ftpd/ftpd_locl.h: add prototype for fclose to make sunos happy
163
1641999-08-19  Johan Danielsson  <joda@pdc.kth.se>
165
166	* ftpd/ftpd.c (do_login): show issue-file
167	(send_data): change handling of zero-byte files
168
1691999-08-18  Assar Westerlund  <assar@sics.se>
170
171	* ftp/cmds.c (getit): be more suspicious when parsing the result
172 	of MDTM.  Do the comparison of timestamps correctly.
173
1741999-08-13  Assar Westerlund  <assar@sics.se>
175
176	* ftpd/ftpd.c (send_data): avoid calling mmap with `len == 0'.
177  	Some mmap:s rather dislike that (Solaris) and some munmap (Linux)
178 	get grumpy later.
179
180	* ftp/ftp.c (copy_stream): avoid calling mmap with `len == 0'.
181  	Some mmap:s rather dislike that (Solaris) and some munmap (Linux)
182 	get grumpy later.
183
1841999-08-03  Assar Westerlund  <assar@sics.se>
185
186	* ftp/ftp.c (active_mode): hide failure of EPRT by setting verbose
187
188	* ftp/gssapi.c (gss_auth): initialize application_data in bindings
189
1901999-08-02  Assar Westerlund  <assar@sics.se>
191
192	* ftpd/ftpcmd.y: save file names when doing commands that might
193 	get aborted (and longjmp:ed out of) to avoid overwriting them also
194 	remove extra closing brace
195
1961999-08-01  Johan Danielsson  <joda@pdc.kth.se>
197
198	* ftpd/ftpcmd.y: change `site find' to `site locate' (to match
199	what it does, and other implementations) keep find as an alias
200
2011999-07-28  Assar Westerlund  <assar@sics.se>
202
203	* common/socket.c: moved to roken
204
205	* common/socket.c: new file with generic socket functions
206
207	* ftpd/ftpd.c: make it more AF-neutral and v6-capable
208
209	* ftpd/ftpcmd.y: add EPRT and EPSV
210
211	* ftpd/extern.h: update prototypes and variables
212
213	* ftp/krb4.c: update to new types of addresses
214
215	* ftp/gssapi.c: add support for both AF_INET and AF_INET6
216 	addresses
217
218	* ftp/ftp.c: make it more AF-neutral and v6-capable
219
220	* ftp/extern.h (hookup): change prototype
221
222	* common/common.h: add prototypes for functions in socket.c
223
224	* common/Makefile.am (libcommon_a_SOURCES): add socket.c
225
226	* ftp/gssapi.c (gss_auth): check return value from
227 	`gss_import_name' and print error messages if it fails
228
2291999-06-15  Assar Westerlund  <assar@sics.se>
230
231	* ftp/krb4.c (krb4_auth): type correctness
232
2331999-06-02  Johan Danielsson  <joda@pdc.kth.se>
234
235	* ftp/ftp.c (sendrequest): lmode != rmode
236	
2371999-05-21  Assar Westerlund  <assar@sics.se>
238
239	* ftp/extern.h (sendrequest): update prototype
240
241	* ftp/cmds.c: update calls to sendrequest and recvrequest to send
242 	"b" when appropriate
243
244	* ftp/ftp.c (sendrequest): add argument for mode to open file in.
245
2461999-05-08  Assar Westerlund  <assar@sics.se>
247
248	* ftpd/ftpcmd.y: rename getline -> ftpd_getline
249
250	* ftp/main.c (makeargv): fill in unused slots with NULL
251
252Thu Apr  8 15:06:40 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
253
254	* ftpd/ftpd.c: remove definition of KRB_VERIFY_USER (moved to
255 	config.h)
256
257Wed Apr  7 16:15:21 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
258
259	* ftp/gssapi.c (gss_auth): call gss_display_status to get a sane
260 	error message; return AUTH_{CONTINUE,ERROR}, where appropriate
261
262	* ftp/krb4.c: return AUTH_{CONTINUE,ERROR}, where appropriate
263
264	* ftp/security.c (sec_login): if mechanism returns AUTH_CONTINUE,
265 	just continue with the next mechanism, this fixes the case of
266 	having GSSAPI fail because of non-existant of expired tickets
267
268	* ftp/security.h: add AUTH_{OK,CONTINUE,ERROR}
269
270Thu Apr  1 16:59:04 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
271
272	* ftpd/Makefile.am: don't run check-local
273
274	* ftp/Makefile.am: don't run check-local
275
276Mon Mar 22 22:15:18 1999  Assar Westerlund  <assar@sics.se>
277
278	* ftpd/ftpd.c (pass): fall-back for KRB_VERIFY_SECURE
279
280	* ftpd/ftpd.c (pass): 1 -> KRB_VERIFY_SECURE
281
282Thu Mar 18 12:07:09 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
283
284	* ftpd/Makefile.am: clean ftpcmd.c
285
286	* ftpd/ftpd_locl.h: remove krb5.h (breaks in ftpcmd.y)
287
288	* ftpd/ftpd.c: move include of krb5.h here
289
290	* ftpd/Makefile.am: include Makefile.am.common
291
292	* Makefile.am: include Makefile.am.common
293
294	* ftp/Makefile.am: include Makefile.am.common
295
296	* common/Makefile.am: include Makefile.am.common
297
298Tue Mar 16 22:28:37 1999  Assar Westerlund  <assar@sics.se>
299
300	* ftpd/ftpd_locl.h: add krb5.h to get heimdal_version
301
302	* ftpd/ftpd.c: krb_verify_user_multiple -> krb_verify_user
303
304Thu Mar 11 14:54:59 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
305
306	* ftp/Makefile.in: WFLAGS
307
308	* ftp/ruserpass.c: add some if-braces
309
310Wed Mar 10 20:02:55 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
311
312	* ftpd/ftpd_locl.h: remove ifdef HAVE_FNMATCH
313
314Mon Mar  8 21:29:24 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
315
316	* ftpd/ftpd.c: re-add version in greeting message
317
318Mon Mar  1 10:49:38 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
319
320	* ftpd/logwtmp.c: HAVE_UT_* -> HAVE_STRUCT_UTMP*_UT_*
321
322Mon Feb 22 19:20:51 1999  Johan Danielsson  <joda@hella.pdc.kth.se>
323
324	* common/Makefile.in: remove glob
325
326Sat Feb 13 17:19:35 1999  Assar Westerlund  <assar@sics.se>
327
328	* ftpd/ftpd.c (match): remove #ifdef HAVE_FNMATCH.  We have a
329 	fnmatch implementation in roken and therefore always have it.
330
331	* ftp/ftp.c (copy_stream): initialize `werr'
332
333Wed Jan 13 23:52:57 1999  Assar Westerlund  <assar@sics.se>
334
335	* ftpd/ftpcmd.y: moved all check_login and check_login_no_guest to
336 	the end of the rules to ensure we don't generate several
337 	(independent) error messages.  once again, having a yacc-grammar
338 	for FTP with embedded actions doesn't strike me as the most
339 	optimal way of doing it.
340
341Tue Dec  1 14:44:29 1998  Johan Danielsson  <joda@hella.pdc.kth.se>
342
343	* ftpd/Makefile.am: link with extra libs for aix
344
345Sun Nov 22 10:28:20 1998  Assar Westerlund  <assar@sics.se>
346
347	* ftpd/ftpd.c (retrying): support on-the-fly decompression
348
349	* ftpd/Makefile.in (WFLAGS): set
350
351	* ftp/ruserpass.c (guess_domain): new function
352	(ruserpass): use it
353
354	* common/Makefile.in (WFLAGS): set
355
356	* Makefile.in (WFLAGS): set
357
358Sat Nov 21 23:13:03 1998  Assar Westerlund  <assar@sics.se>
359
360	* ftp/security.c: some more type correctness.
361
362	* ftp/gssapi.c (gss_adat): more braces to shut up warnings
363
364Wed Nov 18 21:47:55 1998  Assar Westerlund  <assar@sics.se>
365
366	* ftp/main.c (main): new option `-p' for enable passive mode.
367
368Mon Nov  2 01:57:49 1998  Assar Westerlund  <assar@sics.se>
369
370	* ftp/ftp.c (getreply): remove extra `break'
371
372	* ftp/gssapi.c (gss_auth): fixo typo(copyo?)
373
374	* ftp/security.c (sec_login): fix loop and return value
375
376Tue Sep  1 16:56:42 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
377
378	* ftp/cmds.c (quote1): fix % quoting bug
379
380Fri Aug 14 17:10:06 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
381
382	* ftp/krb4.c: krb_put_int -> KRB_PUT_INT
383
384Tue Jun 30 18:07:15 1998  Assar Westerlund  <assar@sics.se>
385
386	* ftp/security.c (auth): free `app_data'
387	(sec_end): only destroy if it was initialized
388
389Tue Jun  9 21:01:59 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
390
391	* ftp/krb4.c: pass client address to krb_rd_req
392
393Sat May 16 00:02:07 1998  Assar Westerlund  <assar@sics.se>
394
395	* ftpd/Makefile.am: link with DBLIB
396
397Tue May 12 14:15:32 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
398
399	* ftp/gssapi.c: Save client name for userok().
400
401	* ftpd/gss_userok.c: Userok for gssapi.
402
403Fri May  1 07:15:01 1998  Assar Westerlund  <assar@sics.se>
404
405	* ftp/ftp.c: unifdef -DHAVE_H_ERRNO
406
407Fri Mar 27 00:46:07 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
408
409	* Make compile w/o krb4.
410
411Thu Mar 26 03:49:12 1998  Johan Danielsson  <joda@emma.pdc.kth.se>
412
413	* ftp/*, ftpd/*: Changes for new framework.
414
415	* ftp/gssapi.c: GSS-API backend for the new security framework.
416
417	* ftp/krb4.c: Updated for new framework.
418
419	* ftp/security.{c,h}: New unified security framework.
420