chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
660ea96
)
mount: check for NULL before reading pm->what
author
Dave Reisner
<dreisner@archlinux.org>
Fri, 4 Oct 2013 22:22:40 +0000
(18:22 -0400)
committer
Dave Reisner
<dreisner@archlinux.org>
Fri, 4 Oct 2013 22:23:53 +0000
(18:23 -0400)
Since
a57f7e2c828b85
, a mount unit with garbage in it would cause
systemd to crash on loading it.
ref: https://bugs.freedesktop.org/show_bug.cgi?id=70148
src/core/mount.c
patch
|
blob
|
history
diff --git
a/src/core/mount.c
b/src/core/mount.c
index 93bfa99f3fe123525b6c290fb9985a1100ef3681..db055f0a00ce204d156296e192460ef1dbc9219f 100644
(file)
--- a/
src/core/mount.c
+++ b/
src/core/mount.c
@@
-182,7
+182,7
@@
static int mount_add_mount_links(Mount *m) {
* for the source path (if this is a bind mount) to be
* available. */
pm = get_mount_parameters_fragment(m);
- if (pm && path_is_absolute(pm->what)) {
+ if (pm && p
m->what && p
ath_is_absolute(pm->what)) {
r = unit_require_mounts_for(UNIT(m), pm->what);
if (r < 0)
return r;