Re: EFS 1.6 bug: delete hang

sandy@ibm550.sissa.it
Sun, 6 Mar 1994 01:16:58 +0100


Andy wrote:

 > efs hangs when attempting to delete a file in a directory.  It looks like the
 > deletion is successful, but efs isn't noticing, probably because the ftp
 > server on my PC is 8 years old and doesn't neccessarily conform to the right
 > standards.

 > ...

>ftp> delete C:\\DOWNLOAD\\ATM.ZIP
 > 200 OK

I'll say.  DELE can return 250, 421, 450, 550, 500, 501, 502, or 530

But not 200.

You will need to change the following regexp to include delete:

(defvar efs-cmd-ok-cmds
  "^quote port \\|^type \\|^quote site \\|^chmod ")
;; Regexp to match commands for which efs-cmd-ok-msgs is a valid server
;; response for success.

Note that:

(defvar efs-cmd-ok-msgs
  ;; RFC959 compliant
  "^200 ")
;; Regexp to match the server command OK response.
;; Because PORT commands return this we usually ignore it. However, it is
;; a valid response for TYPE, SITE, and a few other commands (cf. RFC 959).
;; If we are explicitly sending a PORT, or one of these other commands, 
;; then we don't want to ignore this response code.

I do not think that this change will have bad side-effects, but you
might want to make it host-specific just in case.

--sandy