diff options
author | Phil Pennock <pdp@exim.org> | 2011-01-21 06:10:35 -0500 |
---|---|---|
committer | Phil Pennock <pdp@exim.org> | 2011-01-21 06:10:35 -0500 |
commit | 33191679e1a86ba6d9c38a74d0795d00c300f2c5 (patch) | |
tree | 772265538dce2e2e3dd25ff90149c596226373fe /src | |
parent | 35110e7035925a8f2bb93c64151da7e0afaf85cf (diff) |
Tests compat. setgid failure / dropped_privilege
If we've *dropped* privilege, it's okay to not abort if setgid fails.
Document some of what's now needed for the test suite.
Adjust the test suide for better post-4.73 compat.
Diffstat (limited to 'src')
-rw-r--r-- | src/src/exim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/src/exim.c b/src/src/exim.c index 67fbc5cf7..c8a5da12a 100644 --- a/src/src/exim.c +++ b/src/src/exim.c @@ -3885,14 +3885,14 @@ else no need to complain then. */ if (rv == -1) { - if (!unprivileged) + if (!(unprivileged || removed_privilege)) { fprintf(stderr, "exim: changing group failed: %s\n", strerror(errno)); exit(EXIT_FAILURE); } else - debug_printf("changing group to %ld failed: %s\n", + DEBUG(D_any) debug_printf("changing group to %ld failed: %s\n", (long int)exim_gid, strerror(errno)); } } |