Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jul 2020 13:08:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   [Bug 240767] linprocfs(4) - /proc/fd is weird
Message-ID:  <bug-240767-4077-2MW85x6Z4A@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-240767-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-240767-4077@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D240767

--- Comment #8 from commit-hook@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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-240767-4077-2MW85x6Z4A>