use "define" for ezmlm-web.cgi location

This commit is contained in:
lars 2006-04-20 15:35:01 +00:00
parent a5e73e96f6
commit b895416bc1
1 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,8 @@
/* $Id$ */
/* Change this path to wherever you decided to put ezmlm-web.cgi */
#define EZMLM_WEB_CGI "/usr/local/bin/ezmlm-web.cgi"
#include <stdio.h>
#include <unistd.h>
@ -10,8 +13,7 @@
int main(void) {
/* Change this path to wherever you decided to put ezmlm-web.cgi */
execv("/usr/local/bin/ezmlm-web.cgi", NULL);
execv(EZMLM_WEB_CGI, NULL);
/* Note that you could also use the following to allow a specific user
to store their mailing lists and configuration file in a different
@ -29,7 +31,7 @@ int main(void) {
/*
char *switches[] = { "ezmlm-web.cgi", "-d", "/tmp/ezmlm-web-demo", NULL };
execv("/usr/local/bin/ezmlm-web.cgi", switches);
execv(EZMLM_WEB_CGI, switches);
*/