On 31 Aug 2008, Giampaolo Tomassoni outgrape:

> Uff!
>
> Stock glibc v.2.6.1, source file resolv/res_libc.c, line#167:
>
>       if (stat (_PATH_RESCONF, &statbuf) == 0 && last_mtime !=
> statbuf.st_mtime) {
>
> _PATH_RESCONF is /etc/resolv.conf; last_mtime is the last modify time (the
> previous modify time) of the /etc/resolv.conf file.

Er, um, resolv/res_libc.c in glibc 2.6.1 (and the very latest 2.8: the
file is unchanged) is only 152 lines long. There is no reference to
st_mtime anywhere under resolv/.

Are you sure that's stock?

> I don't know which glibc version you have, but trust me this code had been
> there by long time.

Not in my universe :)

> I you have a "twisted" version of glibc, please share: it is free software
> and you have to publish any change to it... :)

May I second that motion? Are you *sure* yours doesn't have any distro patches
applied? (Mine is straight from upstream CVS.)

This is something I can understand a distro vendor patching, and also
something I can see Ulrich rejecting, because banging stat()s on that
file with every name lookup seems expensive. (Doing it every minute or
so would be acceptable to me, but IIRC Ulrich turned that down as
well...)

-- 
`Not even vi uses vi key bindings for its command line.' --- PdS

Reply via email to