Bug by design in getfsfile(3) / needed sanity check for
mountpoints
Giorgos Keramidas
keramida at ceid.upatras.gr
Tue Jun 10 00:53:55 UTC 2008
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/
More information about the freebsd-hackers
mailing list