From: Christian Hesse Date: Wed, 9 Nov 2016 15:48:15 +0000 (+0100) Subject: resolved: use macro for private resolve.conf X-Git-Tag: v233~435^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=604c941520bf27ad301e8126cbfd159b15573f27;p=thirdparty%2Fsystemd.git resolved: use macro for private resolve.conf Use the macro from header file to have a single definition of the path. --- diff --git a/src/resolve/resolved-resolv-conf.c b/src/resolve/resolved-resolv-conf.c index 801014caf56..13f08f8a6c2 100644 --- a/src/resolve/resolved-resolv-conf.c +++ b/src/resolve/resolved-resolv-conf.c @@ -60,7 +60,7 @@ int manager_read_resolv_conf(Manager *m) { return 0; /* Is it symlinked to our own file? */ - if (stat("/run/systemd/resolve/resolv.conf", &own) >= 0 && + if (stat(PRIVATE_RESOLV_CONF, &own) >= 0 && st.st_dev == own.st_dev && st.st_ino == own.st_ino) return 0;