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 | |
| parent | cc25e9655d2197d6fa88b2e3a1cf67ee8a297f76 (diff) | |
| download | mailman-93db3ca4b46bf0a2b60750d72f2527bc1235939b.tar.gz mailman-93db3ca4b46bf0a2b60750d72f2527bc1235939b.tar.zst mailman-93db3ca4b46bf0a2b60750d72f2527bc1235939b.zip | |
Diffstat (limited to 'src')
| -rw-r--r-- | src/Makefile | 17 | ||||
| -rw-r--r-- | src/alias-wrapper.c | 21 | ||||
| -rw-r--r-- | src/cgi-wrapper.c | 26 | ||||
| -rw-r--r-- | src/mail-wrapper.c | 24 |
4 files changed, 82 insertions, 6 deletions
diff --git a/src/Makefile b/src/Makefile index c519f4ac6..d246f2e9c 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,3 +1,20 @@ +# Copyright (C) 1998 by the Free Software Foundation, Inc. +# +# 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. + + HOME=/home/mailman CGI=${HOME}/cgi-bin MAILMAN=${HOME}/mailman diff --git a/src/alias-wrapper.c b/src/alias-wrapper.c index 0c419cd9d..212f04c50 100644 --- a/src/alias-wrapper.c +++ b/src/alias-wrapper.c @@ -1,3 +1,24 @@ +/* +** alias-wrapper.c: +** wrapper to allow the mailman user to modify the aliases database. +** +** Copyright (C) 1998 by the Free Software Foundation, Inc. +** +** 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. +*/ + #include <stdio.h> 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> diff --git a/src/mail-wrapper.c b/src/mail-wrapper.c index 3969c57e3..3ad0803d4 100644 --- a/src/mail-wrapper.c +++ b/src/mail-wrapper.c @@ -1,17 +1,35 @@ /* +** mail-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. Made it a root script so we could ** call setuid() ** -** Chmod this bitch 4755. +** Chmod this 4755. ** */ #include <stdio.h> |
