git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Handle UTC vs specified-timezone for certificate extractors. Bug 1541
[exim.git]
/
src
/
src
/
exicyclog.src
diff --git
a/src/src/exicyclog.src
b/src/src/exicyclog.src
index f10446339209f61df2d9bb3088964028c31878f0..01d1f2feb2fd8aa82dced2dbc43c886287fb750f 100644
(file)
--- a/
src/src/exicyclog.src
+++ b/
src/src/exicyclog.src
@@
-1,7
+1,6
@@
#! /bin/sh
#! /bin/sh
-# $Cambridge: exim/src/src/exicyclog.src,v 1.8 2008/07/28 18:24:13 fanf2 Exp $
-# Copyright (c)
2006 University of Cambridge.
+# Copyright (c)
University of Cambridge, 1995 - 2007
# See the file NOTICE for conditions of use and distribution.
# This script takes the following command line arguments:
# See the file NOTICE for conditions of use and distribution.
# This script takes the following command line arguments:
@@
-53,12
+52,12
@@
keep=EXICYCLOG_MAX
compress=COMPRESS_COMMAND
suffix=COMPRESS_SUFFIX
compress=COMPRESS_COMMAND
suffix=COMPRESS_SUFFIX
-chown=CHOWN_COMMAND
chgrp=CHGRP_COMMAND
chmod=CHMOD_COMMAND
chgrp=CHGRP_COMMAND
chmod=CHMOD_COMMAND
-
touch=TOUCH
_COMMAND
+
chown=CHOWN
_COMMAND
mv=MV_COMMAND
rm=RM_COMMAND
mv=MV_COMMAND
rm=RM_COMMAND
+touch=TOUCH_COMMAND
# End of editable lines
#########################################################################
# End of editable lines
#########################################################################
@@
-84,7
+83,7
@@
done
# in different places. We have a fudge that will search the usual suspects if
# requested.
# in different places. We have a fudge that will search the usual suspects if
# requested.
-for cmd in ch
own chgrp chmod mv rm
; do
+for cmd in ch
grp chmod chown mv rm touch
; do
eval "oldcmd=\$$cmd"
if [ "$oldcmd" != "look_for_it" ] ; then continue ; fi
newcmd=$cmd
eval "oldcmd=\$$cmd"
if [ "$oldcmd" != "look_for_it" ] ; then continue ; fi
newcmd=$cmd
@@
-251,7
+250,7
@@
count=$keep
if [ $count -lt 10 ]; then countt=0$count; else countt=$count; fi
while [ $count -gt 1 ]; do
if [ $count -lt 10 ]; then countt=0$count; else countt=$count; fi
while [ $count -gt 1 ]; do
- old=`expr $count - 1`
+ old=`expr
--
$count - 1`
if [ $keep -gt 99 ]; then
if [ $old -lt 10 ]; then oldt=00$old
elif [ $old -lt 100 ]; then oldt=0$old
if [ $keep -gt 99 ]; then
if [ $old -lt 10 ]; then oldt=00$old
elif [ $old -lt 100 ]; then oldt=0$old
@@
-334,7
+333,7
@@
while [ $count -le $keep ]; do
$chown $user:$group $paniclog.$countt.$suffix
fi
$chown $user:$group $paniclog.$countt.$suffix
fi
- count=`expr $count + 1`
+ count=`expr
--
$count + 1`
done
# End of exicyclog
done
# End of exicyclog