From: Zbigniew Jędrzejewski-Szmek Date: Fri, 28 Nov 2014 18:43:09 +0000 (-0500) Subject: mount: create directory before adding watches on it X-Git-Tag: v218~223 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90598531b0bb79626ae5471f7c7c9e82954050c9;p=platform%2Fupstream%2Fsystemd.git mount: create directory before adding watches on it --- diff --git a/src/core/mount.c b/src/core/mount.c index 679d15c..61bc3e3 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;