diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2015-06-04 19:15:20 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@googlemail.com> | 2015-06-04 19:15:20 +0200 |
commit | 5c9e74f738da3b94f7814e1c19a5aafcaff036f4 (patch) | |
tree | 4671746cf96121715d5b368a2ca0d03e2fa38b82 | |
parent | c9876eff9bc85c56e5f83c717bda3ba6ee059bee (diff) | |
parent | c0a7f8d3cb757cf750fc6788df0d215f6457c09d (diff) |
Merge pull request #73 from zonque/mountinfo
core/mount: skip incomplete mountinfo entries
-rw-r--r-- | src/core/mount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/mount.c b/src/core/mount.c index ba1dcf1e85..851b41351e 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1522,6 +1522,9 @@ static int mount_load_proc_self_mountinfo(Manager *m, bool set_flags) { options = mnt_fs_get_options(fs); fstype = mnt_fs_get_fstype(fs); + if (!device || !path) + continue; + if (cunescape(device, UNESCAPE_RELAX, &d) < 0) return log_oom(); |