summaryrefslogtreecommitdiffstats
path: root/src/nspawn/nspawn-setuid.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-10-02 21:32:38 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2016-10-08 20:48:41 +0200
commitb006762524c76e8a3ef8d965bb2bf42c894196e4 (patch)
treee906847aa5d9ac3728d48b3c48d6b24c0df70419 /src/nspawn/nspawn-setuid.c
parentnspawn: check env var first, detect second (diff)
downloadsystemd-b006762524c76e8a3ef8d965bb2bf42c894196e4.tar.xz
systemd-b006762524c76e8a3ef8d965bb2bf42c894196e4.zip
nspawn: move the main loop body out to a new function
The new function has 416 lines by itself! "return log_error_errno" is used to nicely reduce the volume of error handling code. A few minor issues are fixed on the way: - positive value was used as error value (EIO), causing systemd-nspawn to return success, even though it shouldn't. - In two places random values were used as error status, when the actual value was in an unusual place (etc_password_lock, notify_socket). Those are the only functional changes. There is another potential issue, which is marked with a comment, and left unresolved: the container can also return 133 by itself, causing a spurious reboot.
Diffstat (limited to 'src/nspawn/nspawn-setuid.c')
0 files changed, 0 insertions, 0 deletions