emacs-pretest-bug
[Top][All Lists]
Advanced

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

ange-ftp errors out for some directories


From: lawrence mitchell
Subject: ange-ftp errors out for some directories
Date: Sat, 21 Jun 2003 18:38:11 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50

When I try to log into certain ftp sites, ange-ftp produces an
error when trying to read a directory.

The problem lies in the fact that, while I have permissions to
read/write certain directories, I do not have permissions to
read the parent directories.

This situation often arises with web-hosting, where one uploads
to a "home" directory, but doesn't have permission to access its
parent.

The problem lies in `ange-ftp-file-symlink-p', and also
`ange-ftp-get-files', which is typically called to try and
access the parent directory.  A typical backtrace for me, is
something like:

  ange-ftp-error("homepages.demon.co.uk" "vegetable" "DIR failed:
  550 /vol2/demon.co.uk/v/e/g/: Permission denied."
  ange-ftp-ls("/ftp:homepages.demon.co.uk:/vol2/demon.co.uk/v/e/g/" "-al" t nil)
  ange-ftp-get-files("/ftp:homepages.demon.co.uk:/vol2/demon.co.uk/v/e/g/")
  
ange-ftp-file-symlink-p("/ftp:homepages.demon.co.uk:/vol2/demon.co.uk/v/e/g/vegetable")

Where I have access to /vol1/demon.co.uk/v/e/g/vegetable, but
not to its parent.

I'm not sure of the correct way to fix this.  Whether, in case
of error one should just try and call
`ange-ftp-real-file-symlink-p' or something else.


In GNU Emacs 21.3.50.29 (i686-pc-linux-gnu)
 of 2003-06-21 on yam
configured using `configure '--with-gtk' '--prefix=/opt/sw/emacs-21.3.5''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: C
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: C
  value of $LC_TIME: C
  value of $LANG: en_GB
  locale-coding-system: iso-latin-1
  default-enable-multibyte-characters: t

-- 
lawrence mitchell <address@hidden>




reply via email to

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