Incorrect check of event queue limit

Issue #152 resolved
Paweł Burdzy created an issue

Function file_checkQueueLimit in module file.c performs check ! stat(de->d_name, &st) && S_ISREG(st.st_mode) && ++used > limit for each file found in directory with queue events. First argument of function call stat is a sole file name and because of that stat returns -1. In consequence, the entire check always fails. First argument of function stat should be full file path: path + "/" + de->d_name.

Comments (2)

  1. Log in to comment