1997-08-06 Miles Bader * open.c (ftp_conn_sysify): Handle REPLY_UNIMP_CMD for "syst". * unix.c (parse_dir_entry): Re-enable mktime calls. 1997-08-04 Miles Bader * unix.c (ftp_conn_unix_cont_get_stats): If returning with an error, ignore any return from ftp_conn_finish_transfer. Wed Jun 4 14:17:30 1997 Miles Bader * Makefile (ftpcp, ftpdir): Rules removed. * ftpcp.c, ftpdir.c: Files removed. Thu May 29 17:24:40 1997 Miles Bader * ftpcp.c (doc): Update. (econnect, eopen_wr, eopen_rd, efinish): New functions. (struct epoint): Remove FD field. Rename RMT_FILE & RMT_HOST to FILE & HOST. (main): Remove array of epoints & loops, & just use RD & WR, calling the e* functions above. Support DST being a directory. Wed May 14 15:22:17 1997 Miles Bader * open.c (ftp_conn_login): Correct defaulting of username. Tue May 13 16:37:18 1997 Miles Bader * unix.c (ftp_conn_unix_cont_get_stats): Clean up our ftp transfer when we're done. Mon May 12 10:57:54 1997 Miles Bader * unix.c (ftp_conn_unix_cont_get_stats): Only abort when necessary. (ftp_conn_unix_start_get_stats): Allocate enough memory for REQ. * cmd.c (ftp_conn_abort): Use ftp_conn_get_raw_reply instead of ftp_conn_get_reply. Accept REPLY_ABORT_OK as a final reply. * reply.c (ftp_conn_get_raw_reply): Renamed from ftp_conn_get_reply. (ftp_conn_get_reply): New function. * ftpconn.h (ftp_conn_get_raw_reply): New declaration. Fri May 9 17:55:25 1997 Miles Bader * priv.h (REPLY_ABORT_OK): New macro. * ftpdir.c (ftpdir2): Deal with new semantics of CONTENTS argument to ftp_conn_get_stats. * unix.c (struct get_stats_state): Add ADDED_SLASH field. (ftp_conn_unix_start_get_stats): Don't use asprintf. Set ADDED_SLASH field. (ftp_conn_unix_cont_get_stats): Remove any initial `./' we added. Abort CONN if we return an error. Thu May 8 14:22:08 1997 Miles Bader * open.c (ftp_conn_open): Cast 2nd arg in connect call to `struct sockaddr *'. * cmd.c: Include . * stats.c (ftp_conn_start_get_stats, ftp_conn_get_stats): Rename FORCE_DIR argument to CONTENTS. * ftpconn.h (ftp_conn_get_stats, ftp_conn_start_get_stats, ftp_conn_unix_start_get_stats): Rename FORCE_DIR argument to CONTENTS. (struct ftp_conn_syshooks): Rename FORCE_DIR argument of START_GET_STATS field type to CONTENTS. * unix.c (struct get_stats_state): Add CONTENTS field. (ftp_conn_unix_start_get_stats): Initialize it. Change FORCE_DIR argument to CONTENTS. Pass -A flag. Prepend ./ to NAME if it doesn't contain a slash. Reject names containg possible meta-characters. * unix.c: Only include if HAVE_HURD_HURD_TYPES_H is defined. (parse_dir_entry): Only set stat->st_fstype if FSTYPE_FTP is defined. Only set stat->st_author if HAVE_STAT_ST_AUTHOR is defined. * Makefile (CPPFLAGS): Add -DHAVE_HURD_HURD_TYPES_H. Wed May 7 12:35:21 1997 Miles Bader * Makefile (SRCS): ftpconn.c replaced by resulting split files. * errs.c: New file. * ftpconn.c (ftp_conn_poss_file_errs): Moved to errs.c. * open.c: New file. * ftpconn.c (ftp_conn_login, ftp_conn_hello, ftp_conn_set_syshooks, ftp_conn_choose_syshooks, ftp_conn_sysify, ftp_conn_open, ftp_conn_close): Functions moved to open.c. * ftpconn.c (ftp_conn_poss_file_errs): Renamed from poss_file_errs; all references changed. Made not static. * xfer.c: New file. * ftpconn.c (ftp_conn_finish_transfer, ftp_conn_start_transfer, ftp_conn_open_data, ftp_conn_start_retrieve, ftp_conn_start_list, ftp_conn_start_dir, ftp_conn_start_store): Functions moved to xfer.c. * addr.c: New file. * ftpconn.c p(ftp_conn_get_pasv_addr, ftp_conn_send_actv_addr): Functions moved to addr.c. * create.c: New file. * ftpconn.c (ftp_conn_create, ftp_conn_free): Functions moved to create.c. * priv.h: New file. * xinl.c: New file. * ftpconn.c (unexpected_reply): Function moved to priv.h. (REPLY_*): Macros moved to priv.h. * rmt.c: New file. * ftpconn.c (ftp_conn_rmt_copy, ftp_conn_rmt_transfer): Functions moved to rmt.c. * cwd.c: New file. * ftpconn.c (ftp_conn_cdup, ftp_conn_cwd, ftp_conn_get_cwd, _cache_cwd): Functions moved to cwd.c. * set-type.c: New file. * ftpconn.c (ftp_conn_set_type): Function moved to set-type.c. * stats.c: New file. * ftpconn.c (ftp_conn_start_get_stats, ftp_conn_cont_get_stats, ftp_conn_get_stats): Functions moved to stats.c. * names.c: New file. * ftpconn.h (ftp_conn_add_name_fun_t): New type. (ftp_conn_start_get_names, ftp_conn_cont_get_names, ftp_conn_get_names): New functions. * unix.c (struct get_stats_state): Add NAME_LEN & NAME_ALLOCED fields. (ftp_conn_unix_cont_get_stats): Retain S's name buffer between entries, only growing it when needed; leave any copying to the client. * ftpconn.h (ftp_conn_add_stat_fun_t): Make first 3 params const. Update comment to say they should be copied if retained. * Makefile (installhdrsubdir): New variable.