projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cf5489
)
core/mount: skip incomplete mountinfo entries
author
Daniel Mack
<daniel@zonque.org>
Thu, 4 Jun 2015 13:39:49 +0000
(15:39 +0200)
committer
Daniel Mack
<daniel@zonque.org>
Thu, 4 Jun 2015 17:00:46 +0000
(19:00 +0200)
Skip /proc/mountinfo entries for which libmount returns a NULL pointer
for 'source' or 'target'. This happened on Semaphore CI's build servers
when the test suite is run.
src/core/mount.c
patch
|
blob
|
history
diff --git
a/src/core/mount.c
b/src/core/mount.c
index
ba1dcf1
..
851b413
100644
(file)
--- 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();