masqmail

changeset 424:19be3b27df6f

Fixed forgotten resetting of identity.
author markus schnalke <meillo@marmaro.de>
date Wed, 30 May 2012 11:24:33 +0200
parents 196dfb2a3056
children a19e47ebbb33
files src/log.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line diff
     1.1 --- a/src/log.c	Wed May 30 10:38:29 2012 +0200
     1.2 +++ b/src/log.c	Wed May 30 11:24:33 2012 +0200
     1.3 @@ -75,6 +75,9 @@
     1.4  		logfile = fopen(filename, "a");
     1.5  		if (!logfile) {
     1.6  			fprintf(stderr, "could not open log '%s': %s\n", filename, strerror(errno));
     1.7 +			if (!conf.run_as_user) {
     1.8 +				set_euidgid(saved_uid, saved_gid, NULL, NULL);
     1.9 +			}
    1.10  			return FALSE;
    1.11  		}
    1.12  		g_free(filename);