bin/124409: fsck(8) requires exact entry for mountpoints when
executing / bug by design in getfsfile(3) in
.../lib/libc/gen/fstab.c
Garrett Cooper
yanefbsd at gmail.com
Sun Jun 22 06:21:08 UTC 2008
On Sat, Jun 21, 2008 at 11:19 PM, Garrett Cooper <yanefbsd at gmail.com> wrote:
>
> There was a reason why I avoided going straight to realpath... didn't
> realpath have security issues and the like, such that it wasn't
Sorry -- didn't finish all of my thought. I meant to say "such that it
wasn't advisable for use in core systems, etc, like mount".
> Linux (it isn't included in glibc) uses a function called
> canonicalize() for resolving paths, which does something similar to
> realpath, but doesn't resolve symlinks, IIRC, and thus avoids the
> security / race condition issue.
>
> Cheers,
> -Garrett
-Garrett
More information about the freebsd-bugs
mailing list