summary refs log tree commit diff
path: root/resolv/resolv_conf.c
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2020-01-21 17:25:39 +0100
committerFlorian Weimer <fweimer@redhat.com>2020-02-14 08:14:03 +0100
commitdd0b4df329ff7ff2a656404db271c8ee8379ff9d (patch)
tree6f23c84805f0f5eff4ebd08aa8e5090bc78d9fdd /resolv/resolv_conf.c
parenta1a20f029299dc27170912bb9233070c8403444d (diff)
downloadglibc-dd0b4df329ff7ff2a656404db271c8ee8379ff9d.tar.gz
glibc-dd0b4df329ff7ff2a656404db271c8ee8379ff9d.tar.xz
glibc-dd0b4df329ff7ff2a656404db271c8ee8379ff9d.zip
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>
Diffstat (limited to 'resolv/resolv_conf.c')
-rw-r--r--resolv/resolv_conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/resolv/resolv_conf.c b/resolv/resolv_conf.c
index d954ba9a5a..bdd2ebb909 100644
--- a/resolv/resolv_conf.c
+++ b/resolv/resolv_conf.c
@@ -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)