[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 |
Symptoms:
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:
-------cut-here-------8<--------cut-here--------8<-------cut-here-------
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/"
nil))
tramp-file-name-handler(file-attributes "/address@hidden:/linux/" nil)
file-attributes("/address@hidden:/linux/")
dired-readin()
dired-internal-noselect("/address@hidden:/linux/" nil)
dired-noselect("/address@hidden:/linux/" nil)
dired("/address@hidden:/linux/")
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)
-------cut-here-------8<--------cut-here--------8<-------cut-here-------
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:
-------cut-here-------8<--------cut-here--------8<-------cut-here-------
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.
Password:
230-
Welcome to the FTP archive at The University of Oslo
====================================================
-------cut-here-------8<--------cut-here--------8<-------cut-here-------
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).
Chris.
- ange-ftp-ftp-program-args default value,
Chris Moore <=