From 90598531b0bb79626ae5471f7c7c9e82954050c9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 28 Nov 2014 13:43:09 -0500 Subject: [PATCH] mount: create directory before adding watches on it --- src/core/mount.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/mount.c b/src/core/mount.c index 679d15c50..61bc3e339 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; -- 2.30.2