From xemacs-m  Wed Mar  5 17:55:50 1997
Received: from steadfast.teradyne.com (steadfast.teradyne.com [131.101.1.200])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA15443
	for <xemacs-beta@xemacs.org>; Wed, 5 Mar 1997 17:55:49 -0600 (CST)
Received: from engine.ecf.teradyne.com (engine.ecf.teradyne.com [131.101.192.6]) by steadfast.teradyne.com (8.7.1/8.7.1) with ESMTP id SAA00066; Wed, 5 Mar 1997 18:58:53 -0500 (EST)
Received: from midnight.eng.ecf.teradyne.com (midnight.ecf.teradyne.com [131.101.192.49]) by engine.ecf.teradyne.com (8.7.1/8.7.1) with SMTP id AAA07850; Thu, 6 Mar 1997 00:54:57 +0100 (MET)
Received: by midnight.eng.ecf.teradyne.com (SMI-8.6/SMI-SVR4)
	id AAA02359; Thu, 6 Mar 1997 00:54:58 +0100
To: Neal Becker <neal@ctd.comsat.com>
Cc: xemacs-beta@xemacs.org, Andy Norman <ange@hplb.hpl.hp.com>,
        efs-bugs@cuckoo.hpl.hp.com
Subject: Re: efs bug?
References: <E0w2Hhz-0001HX-00@neal.ctd.comsat.com>
X-Face: 4[iHdXiTu\V3u[~\I)<f9HC);%~nG8`oUqv#uzvs6=\V{AjN6Sn
 c/qi;YLwRmEbt8Y*=j5n(urqY@chPh@J'D"QlqD!C8>*}#kYF[-tYl3VZga/HSOP|K,{L
 Rtu@f0y/=O&Cu}\:~d|P$JON?pn?j,&CnPb1z#/TL9bkAJwyol&a:SvYj-VYbM=Dtxhk9
 =w|R6U3_;SH&B<Mfy6Q%#
Mime-Version: 1.0 (generated by tm-edit 7.105)
Content-Type: text/plain; charset=US-ASCII
From: Adrian Aichner <aichner@ecf.teradyne.com>
Date: 06 Mar 1997 00:54:55 +0100
In-Reply-To: Neal Becker's message of Wed, 5 Mar 1997 09:30:19 -0500
Message-ID: <rxszpwhao8g.fsf@midnight.ecf.teradyne.com>
Lines: 78
X-Mailer: Gnus v5.4.17/XEmacs 20.1

>>>>> "Neal" == Neal Becker <neal@ctd.comsat.com> writes:

Hi Neal,

yep, here's my lossage for xemacs-20.1-b5:

Listing usr/data/w3.org/ftp/usr/data/w3.org/ftp/usr/data/w3.org/ftp/...done
Listing usr/data/w3.org/ftp/usr/data/w3.org/ftp/usr/data/w3.org/ftp/...
Listing usr/data/w3.org/ftp/usr/data/w3.org/ftp/...done
Listing usr/data/w3.org/ftp/usr/data/w3.org/ftp/...
Listing usr/data/w3.org/ftp/...done
Listing usr/data/w3.org/ftp/...
Reading directory /ftp@ftp.w3.org:/...done
Reading directory /ftp@ftp.w3.org:/...

I can get to
ftp://ftp.w3.org/pub/
or
ftp://ftp.w3.org/usr/data/w3.org/ftp/pub/
fine with netscape.

Could this be a substring handling problem?

--------------------------------------------------------------
I gave it a shot with edebug (still learning it) and found the
culprit:
--------------------------------------------------------------

(defun efs-chase-symlinks (file)
  ;; If FILE is a symlink, chase it until we get to a real file.
  ;; Unlike file truename, this function does not chase symlinks at
  ;; every level, only the bottom level. Therefore, it is not useful for
  ;; obtaining the truename of a file. It is useful for getting at file
  ;; attributes, with a lot less overhead than file truename.
  (let ((target (file-symlink-p file)))
    (if target
	(efs-chase-symlinks
=>       (expand-file-name target (file-name-directory file)))
      file)))

is used to chase symbolic links.

(file-symlink-p "/ftp@ftp.w3.org:/pub")
gives
"./usr/data/w3.org/ftp/pub"

which
(expand-file-name "./usr/data/w3.org/ftp/pub" (file-name-directory
"/ftp@ftp.w3.org:/pub"))

expands to
"/ftp@ftp.w3.org:/usr/data/w3.org/ftp/pub"

as the file argument for a recursive invokation of
`efs-chase-symlinks',

where
(file-symlink-p "/ftp@ftp.w3.org:/usr/data/w3.org/ftp/pub")

gives
"./usr/data/w3.org/ftp/pub"

BINGO! Infinite recursion!

Hope this helps the efs maintainers.

Best regards,

Adrian

  lrwxrwxrwx   1 0        1             25 Feb 12 17:14 pub -> ./usr/data/w3.org/ftp/pub

    Neal> Try efs on /ftp@ftp.w3.org:.  Click on "pub".  Is this an efs bug?
    Neal> -- 
  Teradyne GmbH               Adrian Aichner Applications Engineer
  Semiconductor Test Group    Telephone      +49/89/418 61 (0)-208
  Dingolfinger Strasse 2      Fax            +49/89/418 61-217
  D-81673 M"UNCHEN            E-mail         aichner@ecf.teradyne.com

