Skip to content

Commit b2ad8a1

Browse files
committed
networkd: resolv.conf - reword comment
Take into account that users may want to use resolvconf(8), or similar. Also, avoid repeated calls to fputs().
1 parent e4ecabd commit b2ad8a1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/network/networkd-manager.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -334,11 +334,11 @@ int manager_update_resolv_conf(Manager *m) {
334334

335335
fchmod(fileno(f), 0644);
336336

337-
fputs("# This file is managed by systemd-networkd(8). Do not edit.\n#\n", f);
338-
fputs("# Third party programs must not access this file directly, but\n", f);
339-
fputs("# only through the symlink at /etc/resolv.conf. To manage your\n", f);
340-
fputs("# own static resolv.conf(5), replace the symlink by a static\n", f);
341-
fputs("# file at /etc/resolv.conf.\n\n", f);
337+
fputs("# This file is managed by systemd-networkd(8). Do not edit.\n#\n"
338+
"# Third party programs must not access this file directly, but\n"
339+
"# only through the symlink at /etc/resolv.conf. To manage\n"
340+
"# resolv.conf(5) in a different way, replace the symlink by a\n"
341+
"# static file or a different symlink.\n\n", f);
342342

343343
HASHMAP_FOREACH(link, m->links, i) {
344344
if (link->dhcp) {

0 commit comments

Comments
 (0)