masqmail

diff src/tables.c @ 17:6c59dedd06be

fixed delivery with empty or non-existent alias file Thanks to Marcos Dione for the hint where to look. (Closes Debian bug #417842)
author meillo@marmaro.de
date Thu, 06 Nov 2008 09:41:35 +0100
parents f671821d8222
children 7354c2e0eb31
line diff
     1.1 --- a/src/tables.c	Thu Nov 06 09:33:32 2008 +0100
     1.2 +++ b/src/tables.c	Thu Nov 06 09:41:35 2008 +0100
     1.3 @@ -125,9 +125,11 @@
     1.4  			}
     1.5  		}
     1.6  		fclose(fptr);
     1.7 +		if (list == NULL)
     1.8 +			logwrite(LOG_NOTICE, "empty table file %s\n", fname);
     1.9  		return list;
    1.10  	}
    1.11 -	logwrite(LOG_ALERT, "could not open table file %s: %s\n", fname, strerror(errno));
    1.12 +	logwrite(LOG_ALERT, "could not open table file %s: %s. Thus no aliasing is done\n", fname, strerror(errno));
    1.13  
    1.14  	return NULL;
    1.15  }