]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/namespace.c
namepace: fix error handling when clone_device_node() returns 0 7971/head
authorLennart Poettering <lennart@poettering.net>
Tue, 23 Jan 2018 18:37:59 +0000 (19:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 23 Jan 2018 18:50:32 +0000 (19:50 +0100)
commit152c475f95c7b9b20d293dafea06108b0c488866
tree74fa019326597af13557467c988878dc0a8d8eb9
parent36ce7110b05128d124a43d515abe95c16f72530b
namepace: fix error handling when clone_device_node() returns 0

Before this patch, we'd treat clone_device_node() returning 0 (as
opposed to 1) as error, but then propagate this non-error result in
confusion.

This makes sure that if we ptmx isn't around we propagate that as
-ENXIO.

This is a follow-up for 98b1d2b8d9ea27087a5980b4b902b6a6ab716e03
src/core/namespace.c