mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
Merge pull request #73 from zonque/mountinfo
core/mount: skip incomplete mountinfo entries
This commit is contained in:
commit
5c9e74f738
@ -1522,6 +1522,9 @@ static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags) {
|
|||||||
options = mnt_fs_get_options(fs);
|
options = mnt_fs_get_options(fs);
|
||||||
fstype = mnt_fs_get_fstype(fs);
|
fstype = mnt_fs_get_fstype(fs);
|
||||||
|
|
||||||
|
if (!device || !path)
|
||||||
|
continue;
|
||||||
|
|
||||||
if (cunescape(device, UNESCAPE_RELAX, &d) < 0)
|
if (cunescape(device, UNESCAPE_RELAX, &d) < 0)
|
||||||
return log_oom();
|
return log_oom();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user