From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Dean Kolosiek" Newsgroups: gmane.emacs.bugs Subject: fix for ange-ftp with VAX Date: Sat, 12 Aug 2006 02:49:51 -0700 Message-ID: <7.0.1.0.0.20060812021833.0227cea0@qwest.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: sea.gmane.org 1156928985 16208 80.91.229.2 (30 Aug 2006 09:09:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 30 Aug 2006 09:09:45 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 30 11:09:44 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GIM4f-0001W6-VA for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Aug 2006 11:09:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GIM4e-0003bt-Tq for geb-bug-gnu-emacs@m.gmane.org; Wed, 30 Aug 2006 05:09:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GILaS-0001Ye-Iv for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2006 04:38:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GILaQ-0001VO-BW for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2006 04:38:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GILaP-0001V8-TG for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2006 04:38:13 -0400 Original-Received: from [63.231.195.116] (helo=mpls-qmqp-05.inet.qwest.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GILjm-0000cS-4m for bug-gnu-emacs@gnu.org; Wed, 30 Aug 2006 04:47:54 -0400 Original-Received: from mpls-pop-10.inet.qwest.net (mpls-pop-10.inet.qwest.net [63.231.195.10]) by mpls-qmqp-05.inet.qwest.net (Postfix) with QMQP id EF40662D426 for ; Wed, 30 Aug 2006 08:38:11 +0000 (UTC) Original-Received: from 63-229-74-9.phnx.qwest.net (HELO alexander.qwest.net) (63.229.74.9) by mpls-pop-10.inet.qwest.net with SMTP; 30 Aug 2006 08:38:11 -0000 Original-To: bug-gnu-emacs@gnu.org X-Mailer: QUALCOMM Windows Eudora Version 7.0.1.0 X-Mailman-Approved-At: Wed, 30 Aug 2006 05:09:26 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15291 Archived-At: I have a fix for lisp/net/ange-ftp.el with a VAX. The VAX has OpenVMS V6.2, and Multinet V4.1(16). This ftp server does not handle the '-al' part of the ls command. ange-ftp gives the ls -al command on the directory before determining that the host is vms. The result is that the first attempt to open a file fails. The problem repeats when the server times out the connection and ange-ftp connects again. I am using Emacs 21.3 on Windows, and ange-ftp.el seems to be the same in 21.4. The change I made was to line 3094 in defun ange-ftp-file-name-as-directory: original: (ange-ftp-host-type (car parsed)) update: (ange-ftp-host-type (car parsed) (nth 1 parsed)) This change passes the user name into ange-ftp-host-type so that it can ftp to the host to determine what the host type is, figures out it is vms, and uses DIR instead of ls -al. Without this change it just guesses that the host type is unix.