diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-08-12 14:46:10 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-08-12 16:17:45 +0300 |
commit | de0a2f0f8abdac9596db9c44c788b3acdcac39f4 (patch) | |
tree | 14acc8bf3a87a0a359fcf38a3f11963693994e10 | |
parent | aff5ae79c0ccf6b38d55a4b86fb1c851b57c62e6 (diff) | |
download | direvent-de0a2f0f8abdac9596db9c44c788b3acdcac39f4.tar.gz direvent-de0a2f0f8abdac9596db9c44c788b3acdcac39f4.tar.bz2 |
Version 5.1.90
* NEWS: Update.
* configure.ac: Update.
* src/watcher.c (setwatcher): Fix conditional.
* src/direvent.h (dirwatcher_pattern_match): Add missing prototype.
-rw-r--r-- | NEWS | 5 | ||||
-rw-r--r-- | README | 2 | ||||
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/direvent.h | 2 | ||||
-rw-r--r-- | src/watcher.c | 2 |
5 files changed, 9 insertions, 4 deletions
@@ -1,9 +1,12 @@ -direvent -- history of user-visible changes. 2016-07-06 +direvent -- history of user-visible changes. 2016-08-12 Copyright (C) 2012-2016 Sergey Poznyakoff See the end of file for copying conditions. Please send direvent bug reports to <bug-direvent@gnu.org.ua> +Version 5.1.90 (Git) + + Version 5.1, 2016-07-06 * Globbing patterns in #include statement @@ -60,7 +60,7 @@ at http://direvent.man.gnu.org.ua. * Copyright information: -Copyright (C) 2012-2014 Sergey Poznyakoff +Copyright (C) 2012-2016 Sergey Poznyakoff Permission is granted to anyone to make or distribute verbatim copies of this document as received, in any medium, provided that the diff --git a/configure.ac b/configure.ac index 07da598..2b5677a 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ # along with Direvent. If not, see <http://www.gnu.org/licenses/>. AC_PREREQ([2.69]) -AC_INIT([GNU Direvent], [5.1], [bug-direvent@gnu.org.ua], [direvent], +AC_INIT([GNU Direvent], [5.1.90], [bug-direvent@gnu.org.ua], [direvent], [http://www.gnu.org.ua/software/direvent]) AC_CONFIG_SRCDIR([src/direvent.c]) AC_CONFIG_HEADERS([config.h]) diff --git a/src/direvent.h b/src/direvent.h index 0f1dc92..4f4eaa9 100644 --- a/src/direvent.h +++ b/src/direvent.h @@ -209,6 +209,8 @@ int get_priority(const char *arg); void dirwatcher_ref(struct dirwatcher *dw); void dirwatcher_unref(struct dirwatcher *dw); +int dirwatcher_pattern_match(struct dirwatcher *dwp, const char *file_name); + void setup_watchers(void); struct dirwatcher *dirwatcher_lookup(const char *dirname); int check_new_watcher(const char *dir, const char *name); diff --git a/src/watcher.c b/src/watcher.c index afac389..7275640 100644 --- a/src/watcher.c +++ b/src/watcher.c @@ -334,7 +334,7 @@ setwatcher(struct hashent *ent, void *data) if (dwp->wd == -1 && dirwatcher_init(dwp) == 0) watch_subdirs(dwp, 0); - if (dwp->wd) + if (dwp->wd >= 0) *success = 1; return 0; } |