OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_test.c versions 1.53 and 1.54
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_test.c 1.53 -> 1.54

--- l2_test.c    2003/02/11 07:51:28     1.53
+++ l2_test.c    2003/06/30 11:13:09     1.54
@@ -89,7 +89,7 @@
            "  filter(regex=hecking, negate=0)"
            "  -> prefix(prefix=\"[%d-%m-%Y/%H:%M:%S] %L test[%P]: \", timezone=local)"
            "     -> buffer(size=800)"
-           "        -> file(path=l2_test.log, append=1, perm=0644) ;"
+           "        -> file(path=l2_test.log, trunc=0, perm=0644) ;"
 /*
            "  syslog(ident=L2-Test, facility=user, "
            "         remotehost=localhost, logpid=1, target=remote)"
@@ -124,7 +124,7 @@
     /* create file channel */
     if ((rv = l2_channel_create(&chFile, env, "file")) != L2_OK)
         die(env, rv, "failed to create file channel");
-    if ((rv = l2_channel_configure(chFile, "path=l2_test.log, append=%d,perm=%d", TRUE, 0644)) != L2_OK)
+    if ((rv = l2_channel_configure(chFile, "path=l2_test.log, trunc=%d,perm=%d", 0, 0644)) != L2_OK)
         die(env, rv, "failed to configure file channel");
     if ((rv = l2_channel_levels(chFile, L2_LEVEL_UPTO(L2_LEVEL_INFO), L2_LEVEL_NONE)) != L2_OK)
         die(env, rv, "failed to level of smtp channel");

CVSTrac 2.0.1