OSSP CVS Repository

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

ossp-pkg/l2/l2_ch_file.c 1.21 -> 1.22

--- l2_ch_file.c 2002/01/02 17:07:38     1.21
+++ l2_ch_file.c 2002/03/13 14:49:39     1.22
@@ -95,6 +95,8 @@
     mode = O_WRONLY|O_CREAT;
     if (cfg->append)
         mode |= O_APPEND;
+    else
+        mode |= O_TRUNC;
     if ((cfg->fd = open(cfg->path, mode, cfg->perm)) == -1)
         return L2_ERR_SYS;
 

CVSTrac 2.0.1