diff options
author | Christian Hesse <mail@eworm.de> | 2016-11-09 16:48:15 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2016-11-10 14:23:33 +0100 |
commit | 604c941520bf27ad301e8126cbfd159b15573f27 (patch) | |
tree | 234473fdc93ad44388fb75f160ebd7656c9230b0 /src/resolve | |
parent | 843d5baf6aad6c53fc00ea8d95d83209a4f92de1 (diff) |
resolved: use macro for private resolve.conf
Use the macro from header file to have a single definition of the path.
Diffstat (limited to 'src/resolve')
-rw-r--r-- | src/resolve/resolved-resolv-conf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolve/resolved-resolv-conf.c b/src/resolve/resolved-resolv-conf.c index 801014caf5..13f08f8a6c 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; |