diff options
| author | viega | 1998-05-25 18:14:57 +0000 |
|---|---|---|
| committer | viega | 1998-05-25 18:14:57 +0000 |
| commit | 93db3ca4b46bf0a2b60750d72f2527bc1235939b (patch) | |
| tree | 3219581b6b2837e8766758a5aebbaac8b8d062be /src/cgi-wrapper.c | |
| parent | cc25e9655d2197d6fa88b2e3a1cf67ee8a297f76 (diff) | |
| download | mailman-93db3ca4b46bf0a2b60750d72f2527bc1235939b.tar.gz mailman-93db3ca4b46bf0a2b60750d72f2527bc1235939b.tar.zst mailman-93db3ca4b46bf0a2b60750d72f2527bc1235939b.zip | |
Diffstat (limited to 'src/cgi-wrapper.c')
| -rw-r--r-- | src/cgi-wrapper.c | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/src/cgi-wrapper.c b/src/cgi-wrapper.c index f62fe9e7b..5c6ac9504 100644 --- a/src/cgi-wrapper.c +++ b/src/cgi-wrapper.c @@ -1,22 +1,42 @@ /* +** cgi-wrapper.c: ** generic wrapper that will take info from a environment ** variable, and pass it to two commands. ** -** 10-17-96 : Hal Schechner +** Copyright (C) 1998 by the Free Software Foundation, Inc. ** -** 12-14-96 : John Viega -- changed to work on 1 command, take a list of +** This program is free software; you can redistribute it and/or +** modify it under the terms of the GNU General Public License +** as published by the Free Software Foundation; either version 2 +** of the License, or (at your option) any later version. +** +** This program is distributed in the hope that it will be useful, +** but WITHOUT ANY WARRANTY; without even the implied warranty of +** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +** GNU General Public License for more details. +** +** You should have received a copy of the GNU General Public License +** along with this program; if not, write to the Free Software +** Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 0211-1307, USA. +** +** 10-17-96 : Hal Schechner (hal-j@channel21.com) +** +** 12-14-96 : John Viega (viega@list.org) +** changed to work on 1 command, take a list of ** valid commands, just pass on argv, and use ** execvp() Also threw in some useful feedback for ** when there's a failure, mainly for future ** debugging. ** -** 03-31-98 : John Viega -- Consolidated all CGI wrappers into 1, removed +** 03-31-98 : John Viega (viega@list.org) +** Consolidated all CGI wrappers into 1, removed ** checking the command name, (it was not real ** security anyway...) and changed it to use ** syslog on error. This definitely doesn't have ** any of Hal's code left ;-) ** */ + #include <stdio.h> #include <stdarg.h> #include <syslog.h> |
