unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Dean Kolosiek" <kolosiek@qwest.net>
Subject: fix for ange-ftp with VAX
Date: Sat, 12 Aug 2006 02:49:51 -0700	[thread overview]
Message-ID: <7.0.1.0.0.20060812021833.0227cea0@qwest.net> (raw)


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.

             reply	other threads:[~2006-08-12  9:49 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-12  9:49 Dean Kolosiek [this message]
2006-08-31  7:33 ` fix for ange-ftp with VAX Richard Stallman
2006-08-31  8:25   ` Dean Kolosiek
     [not found]   ` <mailman.6091.1157039231.9609.bug-gnu-emacs@gnu.org>
2006-08-31 19:30     ` martin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7.0.1.0.0.20060812021833.0227cea0@qwest.net \
    --to=kolosiek@qwest.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).