Great Circle Associates Majordomo-Workers
(July 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: problem with config-test.pl, and fix to repair same.
From: c1040 @ azfms . com (Rusty Carruth)
Date: Thu, 31 Jul 1997 14:20:49 -0700
To: majordomo-workers @ greatcircle . com


I was having some problems getting majordomo working.

The short version is, email to any mailing lists I'd set up
resulted in infinite bounce loop, which grew very quickly
into a full bounce storm.

Looked at permissions and all, and config-test said all was ok,
but I'd made the Log be a directory instead of a file, and config-test
only checks for existance and writability, not for flatness.

The following change to the test script (config-test.pl) corrects this:

Change

if ( ! -e $log ) {
    print "Logfile $log didn't exist, trying to create...\n ";
    if (open(A, ">$log") && close(A) ) { # sesame
	print "okay, now chmod'ing..\n";
	chmod (0664, $log) || &bad( "chmod on $log failed, $!");
    } else {
	&bad("Couldn't create logfile $log, $!\n");
    }
} 


to:

if ( ! -e $log ) {
    print "Logfile $log didn't exist, trying to create...\n ";
    if (open(A, ">$log") && close(A) ) { # sesame
	print "okay, now chmod'ing..\n";
	chmod (0664, $log) || &bad( "chmod on $log failed, $!");
    } else {
	&bad("Couldn't create logfile $log, $!\n");
    }
} else {
   if ( -d $log ) {
	&bad("Bad news, logfile $log is a directory, must be a file!\n");
   }
}

I can create a normal 'diff' or context diff output if you'd rather...

rusty@azfms.com

Indexed By Date Previous: Re: Non-ASCII data files in 2.0
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next: Progress report
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Indexed By Thread Previous: Re: Non-ASCII data files in 2.0
From: Jason L Tibbitts III <tibbs@hpc.uh.edu>
Next:
From: (nil)

Google
 
Search Internet Search www.greatcircle.com