From owner-freebsd-hackers@FreeBSD.ORG Sat Aug 19 12:54:05 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6639516A4DA for ; Sat, 19 Aug 2006 12:54:05 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from antivirus.uni-rostock.de (mailrelay1.uni-rostock.de [139.30.8.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D8BB43D49 for ; Sat, 19 Aug 2006 12:54:04 +0000 (GMT) (envelope-from joerg@britannica.bec.de) Received: from antivirus.exch.rz.uni-rostock.de ([127.0.0.1]) by antivirus.uni-rostock.de with Microsoft SMTPSVC(6.0.3790.1830); Sat, 19 Aug 2006 14:54:03 +0200 Received: from antivirus.uni-rostock.de (unverified) by antivirus.exch.rz.uni-rostock.de (Content Technologies SMTPRS 4.3.20) with ESMTP id for ; Sat, 19 Aug 2006 14:54:02 +0200 Received: from mail pickup service by antivirus.uni-rostock.de with Microsoft SMTPSVC; Sat, 19 Aug 2006 14:54:02 +0200 X-SCL: 3 59.52% Received: from mail.uni-rostock.de ([139.30.8.11]) by antivirus.uni-rostock.de with Microsoft SMTPSVC (6.0.3790.1830); Sat, 19 Aug 2006 14:53:56 +0200 Received: from conversion-daemon.mail2.uni-rostock.de by mail2.uni-rostock.de (iPlanet Messaging Server 5.2 HotFix 2.09 (built Nov 18 2005)) id <0J4800201W5N4I@mail.uni-rostock.de> (original mail from joerg@britannica.bec.de) for freebsd-hackers@freebsd.org; Sat, 19 Aug 2006 14:53:56 +0200 (MEST) Received: from britannica.bec.de (storm.stura.uni-rostock.de [139.30.252.72]) by mail2.uni-rostock.de (iPlanet Messaging Server 5.2 HotFix 2.09 (built Nov 18 2005)) with ESMTP id <0J48008XIX5LXA@mail.uni-rostock.de> for freebsd-hackers@freebsd.org; Sat, 19 Aug 2006 14:53:45 +0200 (MEST) Received: by britannica.bec.de (Postfix, from userid 1000) id 7B17A63D1; Sat, 19 Aug 2006 14:53:15 +0200 (CEST) Date: Sat, 19 Aug 2006 14:53:15 +0200 From: Joerg Sonnenberger In-reply-to: <8e96a0b90608190527p3a2b9b90hf18b4a0f947cffec@mail.gmail.com> To: freebsd-hackers@freebsd.org Mail-followup-to: freebsd-hackers@freebsd.org Message-id: <20060819125315.GC192@britannica.bec.de> MIME-version: 1.0 Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: 7BIT Content-disposition: inline User-Agent: Mutt/1.5.12-2006-07-14 References: <8e96a0b90608190527p3a2b9b90hf18b4a0f947cffec@mail.gmail.com> X-OriginalArrivalTime: 19 Aug 2006 12:53:56.0233 (UTC) FILETIME=[88129790:01C6C38E] Subject: Re: Path transformation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Aug 2006 12:54:05 -0000 On Sat, Aug 19, 2006 at 01:27:49PM +0100, mal content wrote: > Is there any code in the tree that does general path transformation > or 'optimisation'? > > For example, this path corresponds to the current working directory: > > "dir1/dir2/dir3/../../../" It might or might not. E.g. dir2 could be a symlink. Check realpath(3) and maybe the implementation of that as well. Joerg