masqmail
diff src/log.c @ 424:19be3b27df6f
Fixed forgotten resetting of identity.
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Wed, 30 May 2012 11:24:33 +0200 |
parents | 5f0829f8e6c7 |
children |
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);