diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-09-08 01:17:15 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-09-08 01:17:15 +0200 |
commit | 07fa00f9d9f4bcedc2289680b6d39f9b0815f577 (patch) | |
tree | 25ee4cd4158866a64871118a1b2f0a2f29a98ff0 /src | |
parent | 4df0514d299e349ce1d0649209155b9e83a23539 (diff) |
nspawn: properly propagate errors when we fail to set soemthing up
Diffstat (limited to 'src')
-rw-r--r-- | src/nspawn/nspawn.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nspawn/nspawn.c b/src/nspawn/nspawn.c index ff8539397f..8cd3cbc620 100644 --- a/src/nspawn/nspawn.c +++ b/src/nspawn/nspawn.c @@ -2727,12 +2727,14 @@ static int outer_child( if (r < 0) return r; - if (copy_devnodes(directory) < 0) + r = copy_devnodes(directory); + if (r < 0) return r; dev_setup(directory, arg_uid_shift, arg_uid_shift); - if (setup_pts(directory) < 0) + r = setup_pts(directory); + if (r < 0) return r; r = setup_propagate(directory); |