From a9cb173f7674d311624c34205f1417b31972d1f2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 5 Apr 2006 04:50:08 +0000 Subject: r14918: cleaner handling of systems without inotify (This used to be commit cf17ff15b15942f0ce068dd0a94b3b565a9b93cb) --- source4/ntvfs/sysdep/sys_notify.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/ntvfs/sysdep/sys_notify.c') 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); } -- cgit