chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cca8de
)
mount: create directory before adding watches on it
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 28 Nov 2014 18:43:09 +0000
(13:43 -0500)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 28 Nov 2014 19:30:50 +0000
(14:30 -0500)
src/core/mount.c
patch
|
blob
|
history
diff --git
a/src/core/mount.c
b/src/core/mount.c
index 679d15c50a4767618d6e4d803dc6fe060cc914ce..61bc3e339220ebff36023d1147f77ab6f29a4b98 100644
(file)
--- 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;