# HG changeset patch # User Richard M. Stallman # Date 862180860 0 # Node ID 53a369ac3d2c669ce53509b83d2ea6e9ea1c9f6e # Parent ef3d3871adef6d367037a4a83131609548b6a63a (ange-ftp-file-entry-p): If ange-ftp-get-files returns nil, don't try ange-ftp-hash-entry-exists-p, just give up. diff -r ef3d3871adef -r 53a369ac3d2c lisp/ange-ftp.el --- a/lisp/ange-ftp.el Sun Apr 27 22:05:34 1997 +0000 +++ b/lisp/ange-ftp.el Sun Apr 27 22:41:00 1997 +0000 @@ -2669,12 +2669,12 @@ ;; will simply send back the ls ;; error message. (ange-ftp-get-hash-entry "." ent)) - ;; Child lookup failed. Try the parent. If this bombs, - ;; we are at wits end -- signal an error. - ;; Problem: If this signals an error, the error message - ;; may not have a lot to do with what went wrong. - (ange-ftp-hash-entry-exists-p file - (ange-ftp-get-files dir)))))) + ;; Child lookup failed, so try the parent. + (let ((table (ange-ftp-get-files dir))) + ;; If the dir doesn't exist, don't use it as a hash table. + (and table + (ange-ftp-hash-entry-exists-p file + table))))))) (defun ange-ftp-get-file-entry (name) "Given NAME, return the given file entry.