[Bug 240767] linprocfs(4) - /proc/fd is weird
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sat Jul 11 13:08:30 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240767
--- Comment #8 from commit-hook at freebsd.org ---
A commit references this bug:
Author: trasz
Date: Sat Jul 11 13:08:17 UTC 2020
New revision: 363093
URL: https://svnweb.freebsd.org/changeset/base/363093
Log:
Make linux stat(2) return the same st_dev for every devfs instance.
The reason for this is to work around an idiosyncrasy of glibc
getttynam(3) implementation: it checks whether st_dev returned for
fd 0 is the same as st_dev returned for the target of /proc/self/fd/0
symlink, and with linux chroots having their own devfs instance,
the check will fail if you chrooted into it.
PR: kern/240767
Reviewed by: kib
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D25559
Changes:
head/sys/compat/linux/linux_stats.c
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-emulation
mailing list