return AFP_OK;
AFP_ASSERT(event >= FCE_FIRST_EVENT && event <= FCE_LAST_EVENT);
+ AFP_ASSERT(path);
LOG(log_debug, logtype_fce, "register_fce(path: %s, type: %s, event: %s",
- path , type == fce_dir ? "dir" : "file", fce_event_names[event]);
+ path, type == fce_dir ? "dir" : "file", fce_event_names[event]);
bname = basename_safe(path);
/* No listeners configured */
return AFP_OK;
- if (path == NULL)
- return AFPERR_PARAM;
/* do some initialization on the fly the first time */
if (first_event) {
* */
void fce_pending_events(AFPObj *obj)
{
+ if (!udp_sockets)
+ return;
check_saved_close_events(obj->options.fce_fmodwait);
}