]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd-network/test-dhcp-client.c
test-dhcp-client: open a real udp socket for test execution
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 2 Feb 2015 19:46:40 +0000 (14:46 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 3 Feb 2015 01:31:18 +0000 (20:31 -0500)
commitfe0885f8ce0f49c8d7496344c39abbebc46c6155
tree159d46b8e3ac96bde1257be71be4f3ae91bd2a36
parente0ec8950935ce587935e299c22232fbf4a2664c9
test-dhcp-client: open a real udp socket for test execution

./test-dhcp-client would attempt to operate fd 0, i.e. stdin.
For example, './test-dhcp-client </dev/null' would fail with EPERM
because /dev/null cannot be used with epoll.

https://bugzilla.redhat.com/show_bug.cgi?id=1076119
src/libsystemd-network/test-dhcp-client.c