summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-11-28 13:43:09 -0500
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-11-28 14:30:50 -0500
commit90598531b0bb79626ae5471f7c7c9e82954050c9 (patch)
tree699531d2664edba3bda62bd50e22d07bd2a9d457
parent5cca8defd2717669c69d13c479c0885af5b534bd (diff)
mount: create directory before adding watches on it
-rw-r--r--src/core/mount.c2
1 files changed, 2 insertions, 0 deletions
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;