bin/124409: Bug by design in getfsfile(3) / needed sanity check
for mountpoints
Garrett Cooper
yanefbsd at gmail.com
Tue Jun 10 09:20:04 UTC 2008
The following reply was made to PR bin/124409; it has been noted by GNATS.
From: "Garrett Cooper" <yanefbsd at gmail.com>
To: bug-followup at freebsd.org
Cc:
Subject: Re: bin/124409: Bug by design in getfsfile(3) / needed sanity check for mountpoints
Date: Mon, 9 Jun 2008 18:46:49 -0700
On Mon, Jun 9, 2008 at 5:55 PM, Giorgos Keramidas
<keramida at ceid.upatras.gr> wrote:
> On Tue, 10 Jun 2008 03:53:41 +0300, Giorgos Keramidas <keramida at ceid.upatras.gr> wrote:
>> On Mon, 9 Jun 2008 01:34:19 -0700, "Garrett Cooper" <yanefbsd at gmail.com> 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.
Right. I'm just awaiting a quorum decision on hackers@ because I don't
want to break existing functionality over what I think is correct.
-Garrett
More information about the freebsd-bugs
mailing list