]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolved: use macro for private resolve.conf
authorChristian Hesse <mail@eworm.de>
Wed, 9 Nov 2016 15:48:15 +0000 (16:48 +0100)
committerChristian Hesse <mail@eworm.de>
Thu, 10 Nov 2016 13:23:33 +0000 (14:23 +0100)
Use the macro from header file to have a single definition of the path.

src/resolve/resolved-resolv-conf.c

index 801014caf563866595e6b2ba61dfb9dfe3dad140..13f08f8a6c2884cd11a328c15b65c4085362fc37 100644 (file)
@@ -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;