summaryrefslogtreecommitdiff
path: root/source4/ntvfs/sysdep/sys_notify.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-04-05 04:50:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:00:16 -0500
commita9cb173f7674d311624c34205f1417b31972d1f2 (patch)
treecab8b6377df9081a03d8805e48ba184fd9b84bf0 /source4/ntvfs/sysdep/sys_notify.c
parent66a0d692564e5392588247696e2156b85252cbea (diff)
downloadsamba-a9cb173f7674d311624c34205f1417b31972d1f2.tar.gz
samba-a9cb173f7674d311624c34205f1417b31972d1f2.tar.bz2
samba-a9cb173f7674d311624c34205f1417b31972d1f2.zip
r14918: cleaner handling of systems without inotify
(This used to be commit cf17ff15b15942f0ce068dd0a94b3b565a9b93cb)
Diffstat (limited to 'source4/ntvfs/sysdep/sys_notify.c')
-rw-r--r--source4/ntvfs/sysdep/sys_notify.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/ntvfs/sysdep/sys_notify.c b/source4/ntvfs/sysdep/sys_notify.c
index fd29f42a0e..1927ac61ce 100644
--- a/source4/ntvfs/sysdep/sys_notify.c
+++ b/source4/ntvfs/sysdep/sys_notify.c
@@ -44,6 +44,10 @@ struct sys_notify_context *sys_notify_init(int snum,
const char *bname;
struct sys_notify_backend *b;
+ if (backends == NULL) {
+ return NULL;
+ }
+
if (ev == NULL) {
ev = event_context_find(mem_ctx);
}