[Top][All Lists]

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

ange-ftp-ftp-program-args default value

From: Chris Moore
Subject: ange-ftp-ftp-program-args default value
Date: 09 Apr 2004 14:18:52 +0200


For the longest time I've been plagued by an odd intermittant error
when using ange-ftp on GNU/Linux.

If I replace .emacs with a single line:

  (dired "/address@hidden:/linux/")

and run Emacs like this:

  emacs -nw --debug

Then I see the following backtrace:

Debugger entered--Lisp error: (wrong-type-argument hash-table-p nil)
  gethash("." nil unknown)
  ange-ftp-hash-entry-exists-p("." nil)
  ange-ftp-file-attributes("/address@hidden:/linux/" nil)
  apply(ange-ftp-file-attributes ("/address@hidden:/linux/" nil))
  ange-ftp-hook-function(file-attributes "/address@hidden:/linux/" nil)
  apply(ange-ftp-hook-function file-attributes ("/address@hidden:/linux/" nil))
  tramp-ftp-file-name-handler(file-attributes "/address@hidden:/linux/" nil)
  apply(tramp-ftp-file-name-handler file-attributes ("/address@hidden:/linux/" 
  tramp-file-name-handler(file-attributes "/address@hidden:/linux/" nil)
  dired-internal-noselect("/address@hidden:/linux/" nil)
  dired-noselect("/address@hidden:/linux/" nil)
  eval-buffer(#<buffer  *load*> nil "~/.emacs" nil t)
  ;;; Reading at buffer position 192
  load-with-code-conversion("/home/bert/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)

It turns out that the ftp client has a '-u' flag:

       -u     Restrains ftp from attempting ``auto-authentication'' upon  ini-
              tial   connection.    If  auto-authentication  is  enabled,  ftp
              attempts to authenticate to the FTP server by sending  the  AUTH
              command,  using  whichever authentication types are locally sup-
              ported.  Once an authentication type is accepted, an authentica-
              tion  protocol  will  proceed  by  issuing  ADAT commands.  This
              option also disables auto-login.

if you don't supply it, then the ftp client tries to
auto-authenticate, which messes up ange-ftp.  The *ftp ...* buffer
starts as follows.  Note the 'AUTH not understood' lines:

ftp> open ftp.uninett.no
Connected to spheniscus.uninett.no.
220 FTP Server
user "anonymous" Turtle Power!
500 AUTH not understood
cd /linux/
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
cd /linux/
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> 331 Anonymous login ok, send your complete email address as your password.

          Welcome to the FTP archive at The University of Oslo

Adding "-u" to ange-ftp-ftp-program-args fixes the problem for me,
but perhaps there's a bug in the handling of the "KERBEROS_V4 rejected
as an authentication type" message.

(I also found that if I "find-file" instead of "dired" on the remote
directory then the 'gethash' error doesn't happen, but it still
doesn't work quite right).


reply via email to

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