emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/net/ange-ftp.el


From: Stefan Monnier
Subject: [Emacs-diffs] Changes to emacs/lisp/net/ange-ftp.el
Date: Tue, 21 May 2002 19:21:17 -0400

Index: emacs/lisp/net/ange-ftp.el
diff -c emacs/lisp/net/ange-ftp.el:1.33 emacs/lisp/net/ange-ftp.el:1.34
*** emacs/lisp/net/ange-ftp.el:1.33     Mon May 20 14:51:49 2002
--- emacs/lisp/net/ange-ftp.el  Tue May 21 19:21:11 2002
***************
*** 2941,2974 ****
  ;; 2. The syntax of FILE and DIR make it impossible that FILE could be a valid
  ;;     subdirectory. This is of course an OS dependent judgement.
  
- ;;; Nowadays, the judgement for #2 is always "no".
- ;;; With today's ftp servers on Unix and GNU systems,
- ;;; it appears to be impossible to tell from the result
- ;;; of the directory listing whether the argument is a directory.
- ;;; This appears to be true even in Emacs 20.7
- 
  (defmacro ange-ftp-allow-child-lookup (dir file)
!   nil)
! ;;;   `(not
! ;;;     (let* ((efile ,file) ; expand once.
! ;;;            (edir ,dir)
! ;;;            (parsed (ange-ftp-ftp-name edir))
! ;;;            (host-type (ange-ftp-host-type
! ;;;                        (car parsed))))
! ;;;       (or
! ;;;        ;; Deal with dired
! ;;;        (and (boundp 'dired-local-variables-file) ; in the dired-x package
! ;;;           (stringp dired-local-variables-file)
! ;;;           (string-equal dired-local-variables-file efile))
! ;;;        ;; No dots in dir names in vms.
! ;;;        (and (eq host-type 'vms)
! ;;;           (string-match "\\." efile))
! ;;;        ;; No subdirs in mts of cms.
! ;;;      (and (memq host-type '(mts cms))
! ;;;           (not (string-equal "/" (nth 2 parsed))))
! ;;;      ;; No dots in pseudo-dir names in bs2000.
! ;;;      (and (eq host-type 'bs2000)
! ;;;           (string-match "\\." efile)))))))
  
  (defun ange-ftp-file-entry-p (name)
    "Given NAME, return whether there is a file entry for it."
--- 2941,2967 ----
  ;; 2. The syntax of FILE and DIR make it impossible that FILE could be a valid
  ;;     subdirectory. This is of course an OS dependent judgement.
  
  (defmacro ange-ftp-allow-child-lookup (dir file)
!   `(not
!     (let* ((efile ,file)              ; expand once.
!            (edir ,dir)
!            (parsed (ange-ftp-ftp-name edir))
!            (host-type (ange-ftp-host-type
!                        (car parsed))))
!       (or
!        ;; Deal with dired
!        (and (boundp 'dired-local-variables-file) ; in the dired-x package
!           (stringp dired-local-variables-file)
!           (string-equal dired-local-variables-file efile))
!        ;; No dots in dir names in vms.
!        (and (eq host-type 'vms)
!           (string-match "\\." efile))
!        ;; No subdirs in mts of cms.
!        (and (memq host-type '(mts cms))
!           (not (string-equal "/" (nth 2 parsed))))
!        ;; No dots in pseudo-dir names in bs2000.
!        (and (eq host-type 'bs2000)
!           (string-match "\\." efile))))))
  
  (defun ange-ftp-file-entry-p (name)
    "Given NAME, return whether there is a file entry for it."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]