Merge pull request #1323 from dvdhrm/mount-propagate

mount: propagate error codes correctly
This commit is contained in:
Lennart Poettering 2015-09-22 02:34:45 +02:00
commit 8e112c803c

View file

@ -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;
}