INN commit: trunk/backends (mod-active.in)
INN Commit
Russ_Allbery at isc.org
Tue Sep 4 10:36:57 UTC 2007
Date: Tuesday, September 4, 2007 @ 03:36:56
Author: iulius
Revision: 7668
Do not forget to chmod 0664 active after having edited it.
Otherwise, inncheck complains.
Modified:
trunk/backends/mod-active.in
---------------+
mod-active.in | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
Modified: mod-active.in
===================================================================
--- mod-active.in 2007-09-03 19:23:42 UTC (rev 7667)
+++ mod-active.in 2007-09-04 10:36:56 UTC (rev 7668)
@@ -1,12 +1,13 @@
#! /usr/bin/perl
# fixscript will replace this line with require innshellvars.pl
+# $Id$
# batch-active-update
# Author: David Lawrence <tale at isc.org>
# Reads a series of ctlinnd newgroup/rmgroup/changegroup commands, such as
-# is output by checkgroups and actsync, and efficiently handles them all at
-# once. Input can come from command line files or stdin, a la awk/sed.
+# is output by docheckgroups and actsync, and efficiently handles them all at
+# once. Input can come from command-line files or stdin, a la awk/sed.
$oldact = $inn::active; # active file location
$oldact = $inn::active; # active file location (same; shut up, perl -w)
@@ -100,6 +101,11 @@
warn "$0: $actime not updated: $!\n";
}
+print "chmoding active files\n" if $debug;
+if (! chmod 0664, $oldact, "$oldact.old", $actime) {
+ warn "$0: chmod $oldact $oldact.old $actime: $!\n";
+}
+
exit 0;
sub
More information about the inn-committers
mailing list