]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r363093:
authorEdward Tomasz Napierala <trasz@FreeBSD.org>
Sun, 23 Aug 2020 22:23:19 +0000 (22:23 +0000)
committerEdward Tomasz Napierala <trasz@FreeBSD.org>
Sun, 23 Aug 2020 22:23:19 +0000 (22:23 +0000)
commitbcfda7fb5f958b983f244f6ed9d4479a76a3b0fd
treee3ac5ca9ee8aed3caf0adb4d38e741ad416e6382
parent347a52d8cebdf5ce36d2bebc6848c8ad4e5dcafa
MFC r363093:

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
Sponsored by: The FreeBSD Foundation
sys/compat/linux/linux_stats.c