From de0a2f0f8abdac9596db9c44c788b3acdcac39f4 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 12 Aug 2016 14:46:10 +0300 Subject: Version 5.1.90 * NEWS: Update. * configure.ac: Update. * src/watcher.c (setwatcher): Fix conditional. * src/direvent.h (dirwatcher_pattern_match): Add missing prototype. --- NEWS | 5 ++++- README | 2 +- configure.ac | 2 +- src/direvent.h | 2 ++ src/watcher.c | 2 +- 5 files changed, 9 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index cf85299..d1cf372 100644 --- a/NEWS +++ b/NEWS @@ -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 +Version 5.1.90 (Git) + + Version 5.1, 2016-07-06 * Globbing patterns in #include statement diff --git a/README b/README index 3526276..5b53b7b 100644 --- a/README +++ b/README @@ -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 . 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; } -- cgit v1.2.1