From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10453 invoked from network); 26 Mar 2008 16:18:51 -0000 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.2.4 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 26 Mar 2008 16:18:51 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 20060 invoked from network); 26 Mar 2008 16:18:47 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 26 Mar 2008 16:18:47 -0000 Received: (qmail 2035 invoked by alias); 26 Mar 2008 16:18:43 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 24749 Received: (qmail 2017 invoked from network); 26 Mar 2008 16:18:42 -0000 Received: from bifrost.dotsrc.org (130.225.254.106) by sunsite.dk with SMTP; 26 Mar 2008 16:18:42 -0000 Received: from vms042pub.verizon.net (vms042pub.verizon.net [206.46.252.42]) by bifrost.dotsrc.org (Postfix) with ESMTP id 79EE88097D31 for ; Wed, 26 Mar 2008 17:18:36 +0100 (CET) Received: from torch.brasslantern.com ([71.116.79.77]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JYC00EMZIMY36A4@vms042.mailsrvcs.net> for zsh-workers@sunsite.dk; Wed, 26 Mar 2008 11:18:35 -0500 (CDT) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id m2QGIXSh017100 for ; Wed, 26 Mar 2008 09:18:33 -0700 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id m2QGIX8g017099 for zsh-workers@sunsite.dk; Wed, 26 Mar 2008 09:18:33 -0700 Date: Wed, 26 Mar 2008 09:18:33 -0700 From: Bart Schaefer Subject: Re: _canonical_path not working on *BSD In-reply-to: <200803261604.m2QG41Ke017772@news01.csr.com> To: zsh-workers@sunsite.dk Message-id: <080326091833.ZM17098@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20080326114413.80713vrmznwpnyuc@bapt.selfip.org> <080326083638.ZM16858@torch.brasslantern.com> <200803261540.m2QFeJmm017381@news01.csr.com> <200803261604.m2QG41Ke017772@news01.csr.com> Comments: In reply to Peter Stephenson "Re: _canonical_path not working on *BSD" (Mar 26, 4:04pm) X-Virus-Scanned: ClamAV 0.91.2/6396/Wed Mar 26 12:29:12 2008 on bifrost X-Virus-Status: Clean On Mar 26, 4:04pm, Peter Stephenson wrote: } } Hmm... sorry about all the traffic... actually, it still doesn't } guarantee to give a canonical path as "readlink -f" does, since it } doesn't check if the value returned is itself a symbolic link Using a while-loop in shell code leads to a potentially infinite loop on a symlink cycle. I think readlink and realpath have some sort of defense against that.