Commit f2bd0f0c authored by Robert Ricci's avatar Robert Ricci
Browse files

Properly protect the mailing list directory.

parent 3bf3946b
...@@ -174,6 +174,8 @@ Phase "sendmail","Configuring sendmail", sub { ...@@ -174,6 +174,8 @@ Phase "sendmail","Configuring sendmail", sub {
DoneIfExists($LIST_DIR); DoneIfExists($LIST_DIR);
mkdir($LIST_DIR,0755) or mkdir($LIST_DIR,0755) or
PhaseFail("Unable to create $LIST_DIR: $!"); PhaseFail("Unable to create $LIST_DIR: $!");
ExecQuietFatal("$CHGRP mailnull $LIST_DIR");
ExecQuietFatal("$CHMOD 750 $LIST_DIR");
}; };
Phase "listfiles", "Creating mailing list files", sub { Phase "listfiles", "Creating mailing list files", sub {
foreach my $list (@MAILING_LIST_NAMES) { foreach my $list (@MAILING_LIST_NAMES) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment