summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Somewhat kludgy changes to make debugging mismatching CGI gid's easierbwarsaw1999-01-074-1/+36
| | | | | | | | | | | | | | | | | | | | to figure out. common.c now sports a global variable running_as_cgi which, when true causes fatal() to output some mildly more helpful HTML in addition to the syslog entry. Since this usually only occurs when the site admin is installing Mailman, this helpful HTML should give a better clue as to what's going wrong, rather than an unhelpful Web server message and syslog entry alone. Naturally, main() in cgi-wrapper.c sets running_as_cgi to 1; it is initialized to 0 so as to not upset mail-wrapper.c. Finally, because I think this is a kludge, I've wrapped this all in an #ifdef HELPFUL, and set Makefile.in to turn this on by default. My thought is that for some future version, if the site admin specifies --with-cgi-gid to configure, that proves they're somewhat clueful, and we'd default the HELPFUL macro to "off".
* Get rid of $< variables in command lines. They don't work for allbwarsaw1998-12-181-4/+4
| | | | versions of make, and aren't really necessary anyway.
* Make common.o depend on the generated Makefile in this directory.bwarsaw1998-12-161-1/+1
| | | | | | That way, if the admin re-runs configure (or config.status), possibly changing the CGI or Mail GID's, the wrappers will get automatically recompiled.
* make finishbwarsaw1998-10-201-4/+20
|
* All these changes are for implemented integrated pipermail based archives.cotton1998-10-091-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Original patches are from The Dragon de Monsyne with the following changes: -added support for private archives as well as public -added support for archiving daily and weekly -made archiving happen in real time -replaced use of pipermail's BSDBDatabase with homegrown python version -took out the need for DocumentTemplate here's a listing of changed files and relevant changes: Makefile.in - added public_html/archives to installdirs Mailman/Archiver.py - changed ArchiveMail to do real time archiving Mailman/Defaults.py.in - added archive frequency and and archive url extension variables Mailman/MailList.py - changed .Save() to alter perms on public vs. private archives Mailman/htmlformat.py - changes directly from The Dragon do Monsyne's patches. I don't know what they are exactly, but all the cgi's seem to work fine, so I assume they are OK. Mailman/versions.py - changes to add archiving based variables back to the list Mailman/Cgi/private - changed to make it work with default installation and made background white on login page src/Makefile.in - changes to make all wrappers setuid mailman: since various processes may access an archive, and the archiving mechanism uses "chmod", all archives must be owned by mailman, so all wrappers need to be owned by and setuid mailman added files: Mailman/HyperArch.py - from The Dragon de Monsyne with changes made noted above Mailman/HyperDatabase.py - the replacement for pipermail.BSDBDatabase scott
* CGIEXT: Leave macro in (for the really needy), but don't fill in itsbwarsaw1998-08-051-1/+1
| | | | value from autoconf
* Minor formatting changesbwarsaw1998-08-052-2/+3
|
* Minor formatting changesbwarsaw1998-08-052-5/+2
|
* Added --with-cgi-ext option for specifying an extension on the cgi-binbwarsaw1998-08-031-2/+4
| | | | wrapper scripts. Apparently the Roxen server requires this.
* prefixdir isn't used anywherebwarsaw1998-07-211-1/+0
|
* Put only $prefix on PYTHONPATH, not $prefix/Mailman. This means thatbwarsaw1998-06-191-1/+1
| | | | only the package path will be used from now on.
* Change to the way the `real' (i.e Python) CGI program gets invoked.bwarsaw1998-06-191-2/+13
| | | | | | | | | | Now the wrapper simply calls the Python written scripts/driver program and passes the module name as argv[1]. Eliminates the (unchecked in) need for symbolic links. This file still gets compiled into a number of different executables, each named after the module that gets imported. This could be changed to use symlinks later.
* Added Emacs C style cruftbwarsaw1998-06-131-0/+7
|
* strerror(): Wrap in standard autoconf generated HAVE_STRERROR ifdefs.bwarsaw1998-06-051-25/+23
| | | | Slight reformatting. Moved to top of file.
* I added a strerror() function to common.h, wrapped in an #ifdef forviega1998-06-041-0/+25
| | | | | | | | NEED_STRERROR. I looked at configure.in, I think I could add the right stuff. However, I'd need to download autoconf and read the docs to generate the configure script, so I think I'll just leave this one to Barry for the time being, if he doesn't mind :)
* check_caller(): Removed test for UID. We now only check for GIDbwarsaw1998-06-014-18/+13
| | | | matches. Fix the prototype, remove macros from C files.
* Get rid of MAIL_UID and CGI_UIDbwarsaw1998-06-011-11/+7
| | | | common.o should also depend on common.h
* I changed the "wrong UID/GID" error messages that go to syslog to makeviega1998-05-311-5/+7
| | | | | | them more explicit. Both myself and my test user got confused the first time, and tried to reconfigure with the GID it was already configured with.
* Ignore the Makefilebwarsaw1998-05-261-0/+12
|
* Several important changes.bwarsaw1998-05-265-232/+323
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. For mail-wrapper.c and cgi-wrapper.c, most common routines have been moved to common.c. While there were some differences in the way these two wrappers worked (most notably in the error handling and reporting when UID's and GID's didn't match), they were easily merged. Fatal errors now always syslog and exit(1). 2. The exec*() call for running the new process has been changed and made consistent. For improved security, the absolute path to the Python interpreter (as discovered by configure) is compiled into these programs, and the environment variable PYTHONPATH is set to include only the absolute path the the installed Mailman package ($prefix/Mailman). Scripts are invoked by exec'ing the Python interpreter with the first argument being the absolute path to the script to run, along with any additional arguments on argc/argv. See the function run_script() in common.c for details. 3. alias-wrapper.c has not yet been fully merged. I gathered from Ken that it doesn't work completely well anyway. 4. check_caller() in common.c still checks the gid, but as we discussed before, this may be redundant. I wanted one check-in with a history of this feature first though. 5. Added an Emacs turd at the end of all files so that the C code will be edited using Python's standard C style. Reformatted existing code. 6. Removed pseudo-log history from comments at top of files.
* Makefile is no longer necessary, since it will be generated by thebwarsaw1998-05-261-71/+0
| | | | configure script from the new Makefile.in file.
* Autoconf template for this directory's Makefile.bwarsaw1998-05-261-0/+124
|
* Fixed a typo in the zipcode.viega1998-05-264-4/+4
|
* Added copyright notices to all source files where I am legally entitled to ↵viega1998-05-254-6/+82
| | | | | | | do so. Added a copy of the GNU GPL. Added information about mailman-users in README, and reworded some text in there (made the credits less verbose... perhaps they should move to a credits file?)
* Some inconsequential formatting changes.bwarsaw1998-05-012-148/+170
| | | | | | | | | - Use "Python" C editing style when used with X/Emacs - Make X/Emacs friendly by putting function opening braces in column zero and putting function name on separate line from return type - Also added a C local variables section
* Some inconsequential formatting changes.bwarsaw1998-05-011-43/+58
| | | | | | | | | | - Use "Python" C editing style when used with X/Emacs - Make X/Emacs friendly by putting function opening braces in column zero and putting function name on separate line from return type - Use C style comments instead of C++ style comments. Not all C compilers grok line comments.
* Well, make main return an int.klm1998-04-281-0/+2
|
* Declare main as an int routine so gcc doesn't complain, even though itklm1998-04-282-2/+2
| | | | doesn't return an int.
* Misuse of %s in format string for LEGAL_PARENT_[UG]ID was causingklm1998-04-281-3/+3
| | | | | | | segmentation fault when bad id was detected. Declare main as an int routine so gcc doesn't complain, even though it doesn't return an int.
* Added private_wrapper entry, for the private-archives cgi wrapper.mailman1998-04-111-1/+5
|
* John consolidated the cgi wrappers into a single source file.mailman1998-04-0311-901/+96
|
* I seem to have the right gid now - mail seems to be running asmailman1998-03-301-1/+1
| | | | daemon/other on my (sol 2.6) system.
* Added roster_wrapper target, for new (actually, extracted frommailman1998-03-301-1/+5
| | | | subscribe functionality) subscriber-roster.
* *** empty log message ***klm1998-03-301-0/+107
|
* Do not depend on write access to an arbitrary file name in /tmp forklm1998-03-081-5/+6
| | | | logging - just print to stdout for now. (Is this a security breach??)
* Not using /tmp/fart file, using regular print's instead - otherwisemailman1998-03-081-4/+4
| | | | | the program can be trivially made to fail by creating /tmp/fart such that daemon cannot overwrite it.
* Reverting to original setting that worked, despite the fact that imailman1998-03-051-1/+1
| | | | changed the mailman account GID.
* Track the change of the mailman group.mailman1998-03-051-1/+1
|
* Initial revisionmailman1998-02-2710-0/+902
|
* We use smtp's uid and gid - which happens to be that of root. Am imailman1998-02-261-2/+2
| | | | doing the wrong thing? It works, but i'm not clear about this.
* Initial revisionmailman1998-02-261-0/+135