--- listserv.c 2001/02/12 20:44:13 1.8
+++ listserv.c 2004/02/02 19:50:25 1.9
@@ -1,6 +1,6 @@
/*
$Source: /v/ossp/cvs/ossp-pkg/petidomo/listserv.c,v $
- $Revision: 1.8 $
+ $Revision: 1.9 $
Copyright (C) 2000 by CyberSolutions GmbH, Germany.
@@ -64,7 +64,21 @@
/* Do access control. */
- if (checkACL(MailStruct, NULL, &operator, ¶meter) != 0) {
+ if (checkACL(MailStruct, NULL, &operator, ¶meter, ACL_PRE) != 0) {
+ syslog(LOG_ERR, "checkACL() failed with an error.");
+ exit(1);
+ }
+ rc = handleACL(MailStruct, NULL, operator, parameter);
+ switch(rc) {
+ case -1:
+ syslog(LOG_ERR, "handleACL() failed with an error.");
+ exit(1);
+ case 0:
+ break;
+ case 1:
+ return;
+ }
+ if (checkACL(MailStruct, NULL, &operator, ¶meter, ACL_POST) != 0) {
syslog(LOG_ERR, "checkACL() failed with an error.");
exit(1);
}
|