mount: create directory before adding watches on it

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2014-11-28 13:43:09 -05:00
parent 5cca8defd2
commit 90598531b0

View file

@ -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;