On Tue, Jan 20, 2009 at 8:19 PM, Colin Walters walters@verbum.org wrote:
Both Debian/Ubuntu (http://patches.ubuntu.com/g/glibc/extracted/any/local-dynamic-resolvconf.dif...) and OpenSUSE (http://download.opensuse.org/distribution/11.0/repo/src-oss/suse/src/glibc-2..., resolv.dynamic.diff) ship a patch to glibc which stats() resolv.conf. We do not.
Thinking about this a bit more this morning on the shuttle, there's a strong argument that this is a glibc bug, and that the stat() approach is a correct fix, if not necessarily the most ideal one. That argument is simply that glibc is caching data without a mechanism for invalidation; and a cache without invalidation is always a bug.