chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5ee482d
)
networkd: resolv.conf - extend the comment a bit
author
Tom Gundersen
<teg@jklm.no>
Thu, 16 Jan 2014 19:20:08 +0000
(20:20 +0100)
committer
Tom Gundersen
<teg@jklm.no>
Thu, 16 Jan 2014 19:32:09 +0000
(20:32 +0100)
src/network/networkd-manager.c
patch
|
blob
|
history
diff --git
a/src/network/networkd-manager.c
b/src/network/networkd-manager.c
index 3b542149c0c132c5924b5aff16fe8b69f1f72db3..27f806aab2e93f2f54c886d9329720868e2f6823 100644
(file)
--- a/
src/network/networkd-manager.c
+++ b/
src/network/networkd-manager.c
@@
-334,7
+334,11
@@
int manager_update_resolv_conf(Manager *m) {
fchmod(fileno(f), 0644);
fchmod(fileno(f), 0644);
- fputs("# This file is managed by systemd-networkd(8). Do not edit.\n", f);
+ fputs("# This file is managed by systemd-networkd(8). Do not edit.\n#\n", f);
+ fputs("# Third party programs must not access this file directly, but\n", f);
+ fputs("# only through the symlink at /etc/resolv.conf. To manage your\n", f);
+ fputs("# own static resolv.conf(5), replace the symlink by a static\n", f);
+ fputs("# file at /etc/resolv.conf.\n\n", f);
HASHMAP_FOREACH(link, m->links, i) {
if (link->dhcp) {
HASHMAP_FOREACH(link, m->links, i) {
if (link->dhcp) {