diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-09-13 19:29:46 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-09-13 19:29:46 +0200 |
commit | 7ceba241344b2126e5e9cb46929dbbb591f04c49 (patch) | |
tree | 46d0512e8f6945a97e6b49b61a8b915b3c96831f /src/core/path.c | |
parent | 915b375388231ed97cad2929ab948756bfc77c42 (diff) |
manager: fix the build
Diffstat (limited to 'src/core/path.c')
-rw-r--r-- | src/core/path.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/path.c b/src/core/path.c index 42dd5da8e1..e3defeb5ab 100644 --- a/src/core/path.c +++ b/src/core/path.c @@ -73,14 +73,16 @@ int path_spec_watch(PathSpec *s, Unit *u) { goto fail; } - if ((s->primary_wd = inotify_add_watch(s->inotify_fd, k, flags_table[s->type])) >= 0) + s->primary_wd = inotify_add_watch(s->inotify_fd, k, flags_table[s->type]); + if (s->primary_wd >= 0) exists = true; do { int flags; /* This assumes the path was passed through path_kill_slashes()! */ - if (!(slash = strrchr(k, '/'))) + slash = strrchr(k, '/'); + if (!slash) break; /* Trim the path at the last slash. Keep the slash if it's the root dir. */ |