From 90598531b0bb79626ae5471f7c7c9e82954050c9 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Fri, 28 Nov 2014 13:43:09 -0500 Subject: mount: create directory before adding watches on it --- src/core/mount.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/core') diff --git a/src/core/mount.c b/src/core/mount.c index 679d15c50a..61bc3e3392 100644 --- a/src/core/mount.c +++ b/src/core/mount.c @@ -1624,6 +1624,8 @@ static int mount_enumerate(Manager *m) { if (m->utab_inotify_fd < 0) goto fail_with_errno; + (void) mkdir_p_label("/run/mount", 0755); + r = inotify_add_watch(m->utab_inotify_fd, "/run/mount", IN_MOVED_TO); if (r < 0) goto fail_with_errno; -- cgit v1.2.3-54-g00ecf