aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/rotate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rotate.c b/src/rotate.c
index ae013f6..f7a66a6 100644
--- a/src/rotate.c
+++ b/src/rotate.c
@@ -10,6 +10,9 @@ static char rcsid[] = "$Id$";
/*
* $Log$
+ * Revision 1.5 2008/03/03 06:26:05 staffcvs
+ * *** empty log message ***
+ *
* Revision 1.4 2008/03/03 06:22:51 james
* *** empty log message ***
*
@@ -64,11 +67,11 @@ rotate (char *file)
{
sprintf (buf1, "%s.%d", file, i - 1);
sprintf (buf2, "%s.%d", file, i);
- rename (buf2, buf1);
+ rename (buf1, buf2);
sprintf (buf1, "%s.%d.gz", file, i - 1);
sprintf (buf2, "%s.%d.gz", file, i);
- rename (buf2, buf1);
+ rename (buf1, buf2);
}
sprintf (buf1, "%s.%d", file, 0);