blob: 4a14b6e804e27f987f14ab7597a9c32ec96b6f48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
Index: src/subscriberfuncs.c
===================================================================
--- src/subscriberfuncs.c.orig
+++ src/subscriberfuncs.c
@@ -51,6 +51,9 @@ off_t find_subscriber(int fd, const char
return (off_t)-1;
}
+ if(st.st_size == 0)
+ return (off_t)-1;
+
if(!S_ISREG(st.st_mode)) {
log_error(LOG_ARGS, "Non regular file in subscribers.d/");
return (off_t)-1;
|