From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.help Subject: Re: ange-ftp appears to have trouble with symbolic links to directories Date: 23 Feb 2003 16:15:30 -0500 Organization: Yale University Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <5lvfzapukt.fsf@rum.cs.yale.edu> References: <5lhebo6c1t.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1046035578 1954 80.91.224.249 (23 Feb 2003 21:26:18 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 23 Feb 2003 21:26:18 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18n3dZ-0000VN-00 for ; Sun, 23 Feb 2003 22:26:17 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18n3d0-00061F-03 for gnu-help-gnu-emacs@m.gmane.org; Sun, 23 Feb 2003 16:25:42 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.ycc.yale.edu!rum.cs.yale.edu!rum.cs.yale.edu Original-Newsgroups: gnu.emacs.help Original-Lines: 30 Original-NNTP-Posting-Host: rum.cs.yale.edu User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-Original-NNTP-Posting-Host: rum.cs.yale.edu X-Original-Trace: 23 Feb 2003 16:15:31 -0500, rum.cs.yale.edu Original-Xref: shelby.stanford.edu gnu.emacs.help:110546 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:7048 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:7048 > Hunting around on google, I found a possible patch: > > http://groups.google.com/groups?q=ange-ftp+symbolic+link&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&selm=200004061949.PAA09981%40jik.kamens.brookline.ma.us&rnum=2 > > Any idea why this would not have been picked up already? It appears > to be nearly three years old... This problem has been fixed in the CVS trunk already (tho in a different way). I don't think that's the problem you're seeing, tho. Can you try the patch below instead ? It's against the already patched version of ange-ftp-insert-directory (i.e. it's on top of the previous patch I sent). Stefan @@ -4429,7 +4439,8 @@ tem) (if parsed (if (and (not wildcard) - (setq tem (file-symlink-p (directory-file-name file)))) + (stringp (setq tem (ange-ftp-get-file-entry + (directory-file-name file))))) (ange-ftp-insert-directory (ange-ftp-expand-symlink tem (file-name-directory (directory-file-name file)))