]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-link.c
networkd: be more defensive when writing to ipv4/ipv6 forwarding settings 495/head
authorLennart Poettering <lennart@poettering.net>
Mon, 6 Jul 2015 11:38:47 +0000 (13:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 6 Jul 2015 11:41:51 +0000 (13:41 +0200)
commit15dee3f07c646fd345b0aa30c6566071b3365db7
treedf46683e0b92a473722be313f4ab77f0fb00332e
parent1361205099406d2a19d64547448638a6b665af81
networkd: be more defensive when writing to ipv4/ipv6 forwarding settings

1) never bother with setting the flag for loopback devices

2) if we fail to write the flag due to EROFS (which is likely to happen
   in containers where /proc/sys is read-only) or any other error, check
   if the flag already has the right value. If so, don't complain.

Closes #469
src/basic/fileio.c
src/basic/fileio.h
src/network/networkd-link.c