core/execute: do not use the negative errno when setup_namespace() returns -ENOANO
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 5 Sep 2018 06:12:37 +0000 (15:12 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 18 Sep 2018 05:31:09 +0000 (14:31 +0900)
commitaca835ed2ef200ebe178aff2054fa37265c17698
tree2736b9a2d6253560df4f8656d18b6218d5281108
parent2e4a4faea81fbbc93911700ba7c8ad1404cd8f63
core/execute: do not use the negative errno when setup_namespace() returns -ENOANO

Without this, log shows meaningless error message 'No anode', e.g.,
===
Failed to unshare the mount namespace: Operation not permitted
foo.service: Failed to set up mount namespacing: No anode
foo.service: Failed at step NAMESPACE spawning /usr/bin/test: No anode
===

Follow-up for 1beab8b0d0ff2d7d1436b52d4a0c3d56dc908962.
src/core/execute.c