[ Paul Hoffman writes: ]
>
> Anyone seen this one in MJ 1.94? It just started happening, doesn't happen
> for each message, and I haven't touched any of the MJ code or that archive
> in months. I checked, and all the permissions seem fine. Maybe a lock
> problem?
>
> ----- Transcript of session follows -----
> Can't modify subroutine entry in scalar assignment at
> /usr/home/majordomo/majordomo.pl line 274, near "m@^(/\S+/)@;"
> 554 "|/usr/home/majordomo/wrapper archive -f
Looking at the logic, it appears that your log file has ceased to exist.
Try creating it (with the proper permissions and owners) and your
problem should go away.
There's a regex bug there in majordomo.pl. Here's the patch (for
unpatched 1.94.1):
--- majordomo.pl.orig Mon Dec 23 09:03:52 1996
+++ majordomo.pl Wed Feb 26 09:02:04 1997
@@ -301,7 +301,8 @@
local($err);
if ( ! -w $log_file ) {
if ( ! -e $log_file ) { # log file may not exist, check dir perms.
- local($dir) = $log_file =~ m@^(/\S+/)@;
+ local($dir);
+ ($dir) = $log_file =~ m@^(/\S+)/@;
if ( ! -w $dir ) {
$err .= "Unable to create log file in $dir, check permissions.\n"; #
}
--
Dave Wolfe
References:
|
|