1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
|
Tue Mar 30 22:30:14 1999 Tom Yu <tlyu@mit.edu>
* Makefile.in (KLIB): -lcom_err, not $(COMERRLIB)
Thu Feb 25 23:05:03 1999 Tom Yu <tlyu@mit.edu>
* secure.c (secure_putbuf): Revert Sam's last change; if
FUDGE_FACTOR is wrong, then badness can happen. Also, if
out_buf.length != nbytes+FUDGE_FACTOR, heap corruption could
happen. We really should be using gss_wrap_size_limit() or
something like that, but doing so would require substantial
amounts of reworking. [krb5-appl/685]
Tue Dec 1 18:10:47 1998 Tom Yu <tlyu@mit.edu>
* ftp.c (login): Unconditionally send password as PROT_P.
Fri Aug 7 11:45:17 1998 Tom Yu <tlyu@mit.edu>
* ftp.c (getreply): Restore proper setting of safe. This variable
was previously being set to the value of code rather than to the
boolean expression (code == 631), which it had been previously.
The bug resulted in all replies from the server being parsed as
krb_safe messages even when they were krb_priv messages.
1998-04-21 Ken Raeburn <raeburn@cygnus.com>
* glob.c (ftpglob): Always allocate new storage, even if no magic
glob characters were found, because the caller will always free
the storage.
Tue Apr 7 16:53:58 1998 Dan Winship <danw@mit.edu>
* secure.c (secure_putbyte): Set nout = 0 *before* calling
secure_putbuf: if the transfer is aborted, the SIGURG handler will
longjmp out, so the line after the secure_putbuf will never get
executed, so nout would never be reset and the next transfer
would overrun ucbuf.
Wed Apr 30 14:59:03 1997 Theodore Ts'o <tytso@rsts-11.mit.edu>
* cmds.c (getit): Fix Y2K bug in the parsing of the MDTM command.
[krb5-appl/399]
Fri Nov 22 15:48:19 1996 unknown <bjaspan@mit.edu>
* ftp.c (hookup): use sizeof instead of h_length to determine
number of bytes of addr to copy from DNS response [krb5-misc/211]
Fri Sep 27 16:05:09 1996 Tom Yu <tlyu@mit.edu>
* cmds.c (setpeer): Apply jik's fix so "-n" actually works as
intended.
Tue Sep 10 14:07:15 1996 Tom Yu <tlyu@mit.edu>
* ftp.M: remove ".so man1/header.doc"
Tue Jul 30 19:45:45 1996 Samuel D Hartman (hartmans@vorlon)
* ftp.c (empt resety): Use fd_set as a typedef not a struct.
Linux breaks.
Mon Jul 29 22:37:23 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* secure.c: Do not assume sizeof(long) = 4 for sending lengths OTW
* configure.in: Determine sizeof short, int, long for secure.c
Fri Jul 26 20:55:12 1996 Sam Hartman <hartmans@tertius.mit.edu>
* secure.c (secure_putbyte): Reset nout to zero on errorso we
don't overflow our buffer.
* ftp.c (sendrequest): If there is an error in secure_write, break
out of the loop.
* secure.c(FUDGE_FACTOR): Define for GSSAPI so writes don't fail.
i chose a value of 64, which is larger than the apparent 52 bytes
of additional data but I'm not sure 52 is constant.
(secure_putbuf): Set bufsize to the size we actually allocate
Also, write foure bytes for net_len no matter how long it
actually is. I would rather declare it a 32-bit type but am not
sure whether to use the GSSAPI, krb4, or krb5 32-bit int.
Wed Jul 10 16:40:19 1996 Marc Horowitz <marc@mit.edu>
* cmdtab.c (cmdtab[]), cmds.c (delete_file): rename delete() to
delete_file() to avoid conflict with the dbm delete() function
Thu Mar 28 21:07:40 1996 Ken Raeburn <raeburn@cygnus.com>
* cmds.c (setpeer): Define unix for HP-UX.
Thu Mar 28 19:26:53 1996 Marc Horowitz <marc@mit.edu>
* secure.c (secure_putbuf): the size computation of the output
buffer was ok for krb4, but completely wrong for gssapi. I moved
the code into the KERBEROS block, and wrote suitable code for
GSSAPI. This affects the client and server, which were core
dumping on hpux.
Mon Mar 18 12:12:44 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* secure.c, ftp.c, ftp_var.h: Define STDARG if HAVE_STDARG_H is
defined (in addition to the other tests)
* configure.in: Add AC_HEADER_STDARG
Fri Feb 16 15:50:51 1996 Mark Eichin <eichin@cygnus.com>
* ftp.c (do_auth): return status handling fixes from kbalk@hp.com.
Tue Jan 16 19:05:31 1996 Mark Eichin <eichin@cygnus.com>
* ftp.c (login): move do_auth ...
* cmds.c (setpeer): ... to just before login call.
Mon Feb 5 09:06:16 1996 Ezra Peisach <epeisach@kangaroo.mit.edu>
* configure.in: Check for stdlib.h
* secure.c, pclose.c, ruserpass.c, ftp.c: Include stdlib.h if
present for malloc declarations.
Thu Jan 18 18:33:18 1996 Sam Hartman <hartmans@zygorthian-space-raiders.MIT.EDU>
* cmds.c: Handle sys_errlist and remove declaration of errno.
* configure.in: Check to see if we need to declare sys_errlist.
* ftp.c secure.c: Only define sys_errlist if needed
Thu Jan 18 11:55:50 1996 Sam Hartman <hartmans@tertius.mit.edu>
* configure.in: Check for sys/select.h
* ftp.c: Include sys/select.h if present.
Sun Jan 14 01:54:35 1996 Bill Schoofs <wjs@cray.com>
* Makefile.in (DEFINES): define NOCONFIDENTIAL for future use.
* ftp.c (command): recognize 533, not 402, for 'server unwilling
to accept'
(getreply): recognize 633 for confidential reply, and then don't
support it.
Tue Jan 2 19:17:47 1996 Mark Eichin <eichin@cygnus.com>
* pclose.c: test HAVE_GETDTABLESIZE instead of hpux.
* configure.in: set HAVE_GETDTABLESIZE.
Fri Oct 20 11:59:32 1995 Mark W. Eichin <eichin@cygnus.com>
* ftp.c (do_auth): synthesize channel bindings from myctladdr and
hisctladdr, based on changes pending for draft 9.
Thu Oct 19 04:47:36 1995 Mark W. Eichin <eichin@cygnus.com>
* configure.in: check for POSIX_TERMIOS just like appl/bsd does.
Wed Oct 4 19:24:39 1995 Mark Eichin <eichin@cygnus.com>
* ftp, pclose, ruserpass.c, secure.c: don't ever declare malloc.
Sun Oct 1 03:30:30 1995 Mark Eichin <eichin@cygnus.com>
* ftp.c (do_auth): accept ADAT 3yz response. Clean up loops, add
lots of debugging messages.
Sun Oct 1 00:56:55 1995 Mark Eichin <eichin@cygnus.com>
* Makefile.in: use FTP_BUFSIZ everywhere and make it large for
now.
* ftp.c: only look at "host" for now. Report error parsing
name. Handle gssapi error reporting better.
Sat Sep 30 22:26:37 1995 Mark Eichin <eichin@cygnus.com>
* ftp.c, secure.c: correct gssapi includes. Fix some typos and
missing declarations.
Sat Sep 30 21:31:09 1995 Mark Eichin <eichin@cygnus.com>
* Makefile.in (depend, install): change to double colon rules.
* cmds.c: no conf.h, check HAVE_GETCWD, use krb5_sigtype.
* configure.in: check KRB5_SIGTYPE, CHECK_SIGPROCMASK,
CHECK_WAIT_TYPE, and getcwd.
* ftp.c: no conf.h, use krb5_sigtype.
(secure_command): use user_gss_error.
(do_auth): cycle through gss_services.
(user_gss_error): new function, decomposes GSSAPI errors and sends
them to standard error.
(secure_gss_error): hook for secure.c common functions to get the
correct error routine.
* getpass.c, main.c: no conf.h, use krb5_sigtype.
* pclose.c: no conf.h, use krb5_sigtype.
(mypclose): obey USE_SIGPROCMASK.
* secure.c (secure_getbyte): use generic secure_gss_error.
Sat Sep 30 16:43:28 1995 Mark Eichin <eichin@cygnus.com>
* configure.in, Makefile.in: new files for port to GSSAPI and
build within the Kerberos V5 build tree.
* ftp.c, secure.c: GSSAPI authentication changes based on the IETF
CAT working group ***DRAFT*** FTP Security specification, draft
number 8, appendix I.
**** previous change logs from CNS V4 modifications of Steve Lunt's
draft-3 ftp client, which this is based on. ****
Wed Jul 26 21:01:42 1995 Ken Raeburn <raeburn@cygnus.com>
* domacro.c: Include string.h.
* secure.c: Ditto.
Mon Jul 10 14:54:41 1995 Michael Meissner <meissner@tiktok.cygnus.com>
* glob.c (matchdir): #if 0 code that uses a private member of the
DIR structure to check whether a filename passed to opendir is a
directory or not.
Fri May 26 19:36:12 1995 Mark Eichin <eichin@cygnus.com>
* glob.c (matchdir): open "." explicitly if gpath is null.
Fri May 19 16:11:07 1995 Mark Eichin <eichin@cygnus.com>
* ftp.c (ptransfer): be sure that printf(%g) gets a float, not an
implicit double, by doing the whole calculation in the variable.
Thu Feb 2 13:40:04 1995 Ian Lance Taylor <ian@cygnus.com>
* ftp.c: Don't try to use IP_TOS if the IP_TOS argument
(IPTOS_LOWDELAY, etc.) is not defined.
Wed Jan 18 14:07:33 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
* ftp.1: Include man1/tmac.doc.
* ftp.c (initconn): If the PASV command is rejected, turn off
passive mode and try again.
Wed Jan 4 11:21:34 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
* cmds.c, ftp.c: Use mygetpass instead of getpass.
* ruserpass.c: Don't include <utmp.h>. Don't declare getlogin,
getpass, or getuttmp.
Thu Dec 29 15:19:44 1994 Mark Eichin <eichin@cygnus.com>
* cmds.c (setpeer): add || defined(linux) to the NBBY == 8 check,
since this code is appropriate under linux.
Thu Dec 29 14:11:37 1994 Mark Eichin <eichin@cygnus.com>
* cmds.c (siteidle): renamed idle() to avoid conflict with linux
idle(void).
* cmdtab.c: rename declaration and cmdtab entry.
Tue Dec 27 13:29:08 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* ftp.c: If STDARG is defined, or if __STDC__ is defined and
VARARGS is not defined, include <stdarg.h>, instead of
<varargs.h>.
(command): Use <stdarg.h> routines if STDARG || (__STDC__ && !
VARARGS).
(secure_error): Likewise.
* ftp_var.h (command): Declare if STDARG || (__STDC__ && !
VARARGS).
* secure.c (secure_error): Likewise.
* secure.h (hisaddr): Define as hisdataaddr.
* ftp.c (hisdataaddr): New global variable.
(initconn): Set hisdataaddr to data_addr.
(dataconn): Use hisdataaddr instead of local variable from.
Fri Dec 23 15:18:12 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* cmds.c (unix): Define if _AIX is defined (AIX compiler does not
predefine unix).
* ftp.c (login): When choosing the default login name, use the
values of the environment variables LOGNAME and then USER in
preference to calling getlogin.
Thu Dec 22 14:59:34 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* cmds.c (gettype): Sometimes type will be zero, which requires
special handling.
* main.c: Include <krb.h>.
(main): Support new option: -k.
* ftp.c (realm): New global variable.
(do_auth): Remove local variable realm; use new global instead.
Don't call krb_realmofhost if realm is set.
* ftp.1: Document -k.
Fri Dec 16 10:53:08 1994 Ian Lance Taylor <ian@cygnus.com>
Fixes for Alpha OSF/1:
* cmds.c: Redefine sig_t to my_sig_t to avoid header file
conflict.
* ftp.c: Likewise.
Fixes for SCO:
* cmdtab.c: Include <stdio.h> before ftp_var.h.
* domacro.c: Move include of <stdio.h> before include of
ftp_var.h. Don't include <sys/ttychars.h>.
* main.c: Move include of <stdio.h> before include of ftp_var.h.
Fixes for AIX:
* cmds.c (mput): Use 0 instead of NULL when an integer is
expected.
(getit, mget): Likewise.
* ftp_var.h (strncpy, strncat, strcat, strcpy): Don't declare.
* ruserpass.c (strcpy): Don't declare.
* secure.c: Include <netinet/in.h>.
Fixes for Irix 4:
* ftp_var.h: Unless DEFINITIONS is defined, declare variables
rather than defining them.
* ftp.c: Define DEFINITIONS before including ftp_var.h.
(recvrequest): If NOSTBLKSIZE is defined, use BUFSIZ instead of
st_blksize.
* getpass.c: Put note after #endif in /* */
* pclose.c: Likewise.
* ruserpass.c (token): Move before ruserpass.
(ruserpass): Don't declare token.
General fixes to make it compile on Solaris: Use sigtype for
signal handler return values, including conf.h where needed. Add
a dummy argument to signal handler functions. Replace index,
rindex, bzero and bcopy with ANSI C functions. Cast Kerberos
routine arguments to avoid warnings. Also:
* cmds.c: Include <string.h>. If POSIX is defined, include
unistd.h, otherwise define getcwd to call getwd.
(lcd): Call getcwd instead of getwd.
(shell): If WAIT_USES_INT, use int instead of union wait.
* ftp.c: Include <string.h>.
(L_SET, L_INCR): Define if not defined.
* ftp_var.h (index, rindex): Don't declare.
* main.c: Inclue <string.h>.
* pclose.c (getdtablesize): New function on hpux or __svr4__.
* radix.c (radix_encode): Cast strcmp arguments to avoid warnings.
* ruserpass.c: Include <string.h>. If POSIX, include <stdlib.h>
and don't declare malloc.
(MAXHOSTNAMELEN): Define if not defined.
(index): Don't declare.
Thu Dec 15 16:13:44 1994 Ian Lance Taylor <ian@sanguine.cygnus.com>
* Initial checkin. Based on Steve Lunt's ftp program, which was
based on BSD code.
|