mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 01:55:32 +03:00
Merge pull request #1323 from dvdhrm/mount-propagate
mount: propagate error codes correctly
This commit is contained in:
commit
8e112c803c
@ -208,7 +208,7 @@ int mount_setup_early(void) {
|
||||
int j;
|
||||
|
||||
j = mount_one(mount_table + i, false);
|
||||
if (r == 0)
|
||||
if (j != 0 && r >= 0)
|
||||
r = j;
|
||||
}
|
||||
|
||||
@ -351,7 +351,7 @@ int mount_setup(bool loaded_policy) {
|
||||
int j;
|
||||
|
||||
j = mount_one(mount_table + i, loaded_policy);
|
||||
if (r == 0)
|
||||
if (j != 0 && r >= 0)
|
||||
r = j;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user