hash_notify_init is never called

Juergen Hasch Hasch at t-online.de
Fri Mar 30 14:22:08 GMT 2001


in smbd/notify.c ( samba_2.2.0_alpha3 and head ) there seems to be an
invalid test for cnotify:

BOOL init_change_notify(void)
        cnotify = kernel_notify_init();
        if (!cnotify) cnotify = hash_notify_init();

        if (!cnotify) {
                DEBUG(0,("Failed to init change notify system\n"));
                return False;

        return True;

Because cnotify is not zeroed, hash_notify_init will never be called if
the kernel change notification is not compiled in.
After adding 
at the start of the function I get the hash notification running.

... Juergen

More information about the samba-technical mailing list