unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [chris.moore@mail.com: ange-ftp-ftp-program-args default value]
@ 2004-04-11  2:35 Richard Stallman
  0 siblings, 0 replies; only message in thread
From: Richard Stallman @ 2004-04-11  2:35 UTC (permalink / raw)


I hope there is someone who can look at this.

------- Start of forwarded message -------
Date: 09 Apr 2004 14:18:52 +0200
From: Chris Moore <chris.moore@mail.com>
To: emacs-pretest-bug@gnu.org
Subject: ange-ftp-ftp-program-args default value
Reply-To: Chris Moore <chris.moore@mail.com>
Sender: emacs-pretest-bug-bounces+rms=gnu.org@gnu.org

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 "/anonymous@ftp.uninett.no:/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("/anonymous@ftp.uninett.no:/linux/" nil)
  apply(ange-ftp-file-attributes ("/anonymous@ftp.uninett.no:/linux/" nil))
  ange-ftp-hook-function(file-attributes "/anonymous@ftp.uninett.no:/linux/" nil)
  apply(ange-ftp-hook-function file-attributes ("/anonymous@ftp.uninett.no:/linux/" nil))
  tramp-ftp-file-name-handler(file-attributes "/anonymous@ftp.uninett.no:/linux/" nil)
  apply(tramp-ftp-file-name-handler file-attributes ("/anonymous@ftp.uninett.no:/linux/" nil))
  tramp-file-name-handler(file-attributes "/anonymous@ftp.uninett.no:/linux/" nil)
  file-attributes("/anonymous@ftp.uninett.no:/linux/")
  dired-readin()
  dired-internal-noselect("/anonymous@ftp.uninett.no:/linux/" nil)
  dired-noselect("/anonymous@ftp.uninett.no:/linux/" nil)
  dired("/anonymous@ftp.uninett.no:/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.


_______________________________________________
Emacs-pretest-bug mailing list
Emacs-pretest-bug@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-pretest-bug
------- End of forwarded message -------

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-04-11  2:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-11  2:35 [chris.moore@mail.com: ange-ftp-ftp-program-args default value] Richard Stallman

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).