[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
image.c patch
From: |
cfengine |
Subject: |
image.c patch |
Date: |
Thu, 29 Apr 2004 19:30:58 -0300 |
Hi,
We've found what seems to be a copy & paste typo
in image.c.
The log levels are inconsistent.
The pre-patch situation is that in case of copy,
if inform is on, every link is printed wherever it
needs to be updated or not.
I think that it should be printed only in cfverbose
level.
--- image.c 2004-04-29 15:36:09.000000000 -0300
+++ image.c.ori 2004-04-29 15:33:00.000000000 -0300
@@ -1067,7 +1067,7 @@
{
CfLog(cfverbose,"Checksum comparison replaced by ctime:
files not regular\n","");
snprintf(OUTPUT,bufsize*2,"%s ->
%s\n",sourcefile,destfile);
- CfLog(cfverbose,OUTPUT,"");
+ CfLog(cfinform,OUTPUT,"");
ok_to_copy = (deststatbuf.st_ctime <
sourcestatbuf.st_ctime)||(deststatbuf.st_mtime < sourcestatbuf.st_mtime);
}
@@ -1086,7 +1086,7 @@
}
else
{
- CfLog(cfverbose,"Byte comparison replaced by ctime: files
not regular\n","");
+ CfLog(cfinform,"Byte comparison replaced by ctime: files
not regular\n","");
snprintf(OUTPUT,bufsize*2,"%s ->
%s\n",sourcefile,destfile);
CfLog(cfverbose,OUTPUT,"");
ok_to_copy = (deststatbuf.st_ctime <
sourcestatbuf.st_ctime)||(deststatbuf.st_mtime < sourcestatbuf.st_mtime);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- image.c patch,
cfengine <=