From owner-freebsd-hackers@FreeBSD.ORG Tue Jun 10 00:55:15 2008 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7CB8E106567F for ; Tue, 10 Jun 2008 00:55:15 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id E81468FC1A for ; Tue, 10 Jun 2008 00:55:14 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl116-224.kln.forthnet.gr [77.49.235.224]) (authenticated bits=128) by igloo.linux.gr (8.14.3/8.14.3/Debian-4) with ESMTP id m5A0t109004788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT) for ; Tue, 10 Jun 2008 03:55:06 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m5A0t02h002558 for ; Tue, 10 Jun 2008 03:55:00 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m5A0t0PR002557; Tue, 10 Jun 2008 03:55:00 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: freebsd-hackers@freebsd.org References: <7d6fde3d0806090134u1c46c9f3gbeed3fb303876338@mail.gmail.com> <87ej766rfu.fsf@kobe.laptop> Date: Tue, 10 Jun 2008 03:55:00 +0300 In-Reply-To: <87ej766rfu.fsf@kobe.laptop> (Giorgos Keramidas's message of "Tue, 10 Jun 2008 03:53:41 +0300") Message-ID: <87abhu6rdn.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m5A0t109004788 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.747, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.65, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Subject: Re: Bug by design in getfsfile(3) / needed sanity check for mountpoints 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: Tue, 10 Jun 2008 00:55:15 -0000 On Tue, 10 Jun 2008 03:53:41 +0300, Giorgos Keramidas wrote: > On Mon, 9 Jun 2008 01:34:19 -0700, "Garrett Cooper" wrote: >> Hi hackers, >> I have a question, pending a bug found in getfsfile(3) [1]. >> Is there any possibility where a mountpoint be any value other >> than a directory, a symlink, or "none", i.e. a flat file? >> Thanks, >> -Garrett >> >> References: >> http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/124409 (not fully in PR >> database yet). > > It looks like could be 'fixed' by using realpath() on its argument. > Then this should work fine: > > # fsck /usr/ I meant to write "It looks like getfsfile() could be 'fixed'...", but the keyboard daemon ate a word there.