projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
843d5ba
)
resolved: use macro for private resolve.conf
author
Christian Hesse
<mail@eworm.de>
Wed, 9 Nov 2016 15:48:15 +0000
(16:48 +0100)
committer
Christian 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
patch
|
blob
|
history
diff --git
a/src/resolve/resolved-resolv-conf.c
b/src/resolve/resolved-resolv-conf.c
index 801014caf563866595e6b2ba61dfb9dfe3dad140..13f08f8a6c2884cd11a328c15b65c4085362fc37 100644
(file)
--- 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;