summaryrefslogtreecommitdiffabout
authorSergey Poznyakoff <gray@gnu.org.ua>2016-08-12 11:46:10 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2016-08-12 13:17:45 (GMT)
commitde0a2f0f8abdac9596db9c44c788b3acdcac39f4 (patch) (side-by-side diff)
tree14acc8bf3a87a0a359fcf38a3f11963693994e10
parentaff5ae79c0ccf6b38d55a4b86fb1c851b57c62e6 (diff)
downloaddirevent-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.
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--NEWS5
-rw-r--r--README2
-rw-r--r--configure.ac2
-rw-r--r--src/direvent.h2
-rw-r--r--src/watcher.c2
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 <bug-direvent@gnu.org.ua>
+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 <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;
}

Return to:

Send suggestions and report system problems to the System administrator.