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