tramp-devel
[Top][All Lists]
Advanced

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

Re: tramp (2.0.29); erroneous error message: File is a symlink to a none


From: Michael Albinus
Subject: Re: tramp (2.0.29); erroneous error message: File is a symlink to a nonexistent target
Date: Fri, 04 Apr 2003 23:57:16 +0200
User-agent: Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.2 (gnu/linux)

address@hidden (Kai Großjohann) writes:

> Before Michael's fix, I also got that.  But now I get something weird
> instead.

Finally, I've found 2 additional bugs 2b corrected:

- in tramp-ftp.el there are more ange-ftp functions needing protection
  for recursive call. Fixed in Tramp CVS.

- in ange-ftp.el, there's an error in ange-ftp-insert-directory. The
  first parameter of ange-ftp-expand-symlink must be the local file
  name but the whole file name. The following patch would fix that,
  based on ange-ftp.el HEAD in Emacs CVS:

home/albinus> diff -u ange-ftp.el.orig ange-ftp.el
--- ange-ftp.el.orig    Fri Apr  4 23:32:20 2003
+++ ange-ftp.el Fri Apr  4 23:17:19 2003
@@ -4432,7 +4432,8 @@
                 (setq tem (file-symlink-p (directory-file-name file))))
            (ange-ftp-insert-directory
             (ange-ftp-expand-symlink
-             tem (file-name-directory (directory-file-name file)))
+             (nth 2 (ange-ftp-ftp-name tem))
+             (file-name-directory (directory-file-name file)))
             switches wildcard full)
          (insert
           (if wildcard

For me, everything is fine now except the case of a symlink to a
symlink to a directory on a remote host, which should be a rare case.

Kai: could you, please, verify this, and commit the ange-ftp patch to
CVS if you agree?

Best regards, Michael.





reply via email to

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