Mercurial > hg > mlmmj
changeset 542:7df67dcb9e59
No need to check for subs in 0 length file
author | mmj |
---|---|
date | Tue, 11 Apr 2006 06:40:39 +1000 |
parents | 370b9af33cc6 |
children | e6565d2a4368 |
files | ChangeLog src/subscriberfuncs.c |
diffstat | 2 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Fri Mar 03 00:18:21 2006 +1100 +++ b/ChangeLog Tue Apr 11 06:40:39 2006 +1000 @@ -1,3 +1,4 @@ + o No need to check for subscribers in 0-sized files o Make sure chomp works with empty strings (Frank Denis) 1.2.11 o Previous fix to find_email_adr() was incomplete, so in some
--- a/src/subscriberfuncs.c Fri Mar 03 00:18:21 2006 +1100 +++ b/src/subscriberfuncs.c Tue Apr 11 06:40:39 2006 +1000 @@ -51,6 +51,10 @@ return (off_t)-1; } + /* No need to check in 0-size file */ + 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;