ezmlm-web/suid-wrapper/index.c

39 lines
1 KiB
C
Raw Permalink Normal View History

/* $Id$ */
2005-05-20 23:54:47 +02:00
// define the location of your ezmlm-web.cgi file in this header file
#include "index.h"
2005-05-20 23:54:47 +02:00
#include <stdio.h>
#include <unistd.h>
2005-05-20 23:54:47 +02:00
/* C wrapper to allow ezmlm-web.cgi to run suid */
/* Copyright (C) 1999/2000, Guy Antony Halse, All Rights Reserved */
2006-03-30 02:50:24 +02:00
/* Copyright (C) 02005/02006, Lars Kruse, All Rights Reserved */
2005-05-20 23:54:47 +02:00
/* See the README file in this distribution for copyright information */
int main(void) {
2006-03-30 02:50:24 +02:00
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
location. This overrides the default.
ezmlm-web.cgi understands the following parameters:
-C /path/to/config.file
-d /path/to/list/directory
See README for the default values. */
2005-05-20 23:54:47 +02:00
/* Look at the exec(3) man page if you don't understand how the arguments
list below works */
/*
char *switches[] = { "ezmlm-web.cgi", "-d", "/tmp/ezmlm-web-demo", NULL };
execv(EZMLM_WEB_CGI, switches);
*/
2005-05-20 23:54:47 +02:00
}