diff options
author | Bob Beck <beck@cvs.openbsd.org> | 2015-12-08 03:21:10 +0000 |
---|---|---|
committer | Bob Beck <beck@cvs.openbsd.org> | 2015-12-08 03:21:10 +0000 |
commit | acb418c80566decc9baeba027ae53bcfb8714070 (patch) | |
tree | d09b653ea634f5fc5fa1fd0ce7e42cd2ef2f9ac8 /libexec/spamd/grey.c | |
parent | 4b154a643b4ef5a4448fd2e5b4d8e2e11d596eb5 (diff) |
Initially pledge spamd
All the work done by Ricardo Mestre <serial@helheim.mooo.com> - Thanks.
Diffstat (limited to 'libexec/spamd/grey.c')
-rw-r--r-- | libexec/spamd/grey.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libexec/spamd/grey.c b/libexec/spamd/grey.c index 6cc3b2164cd..9407a03f464 100644 --- a/libexec/spamd/grey.c +++ b/libexec/spamd/grey.c @@ -1,4 +1,4 @@ -/* $OpenBSD: grey.c,v 1.60 2015/11/29 06:51:20 deraadt Exp $ */ +/* $OpenBSD: grey.c,v 1.61 2015/12/08 03:21:09 beck Exp $ */ /* * Copyright (c) 2004-2006 Bob Beck. All rights reserved. @@ -1018,7 +1018,7 @@ drop_privs(void) } } -static void +void check_spamd_db(void) { HASHINFO hashinfo; @@ -1045,7 +1045,6 @@ check_spamd_db(void) exit(1); } close(i); - drop_privs(); return; break; default: @@ -1056,7 +1055,6 @@ check_spamd_db(void) } db->sync(db, 0); db->close(db); - drop_privs(); } @@ -1065,7 +1063,7 @@ greywatcher(void) { struct sigaction sa; - check_spamd_db(); + drop_privs(); startup = time(NULL); db_pid = fork(); |