mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
resolv: Enhance __resolv_conf_load to capture file change data
The data is captured after reading the file. This allows callers to check the change data against an earlier measurement. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -136,7 +136,7 @@ __resolv_conf_get_current (void)
|
||||
{
|
||||
/* Parse configuration while holding the lock. This avoids
|
||||
duplicate work. */
|
||||
conf = __resolv_conf_load (NULL);
|
||||
conf = __resolv_conf_load (NULL, NULL);
|
||||
if (conf != NULL)
|
||||
{
|
||||
if (global_copy->conf_current != NULL)
|
||||
|
Reference in New Issue
Block a user