Index: ossp-pkg/l2/l2_ch_file.c RCS File: /v/ossp/cvs/ossp-pkg/l2/l2_ch_file.c,v rcsdiff -q -kk '-r1.21' '-r1.22' -u '/v/ossp/cvs/ossp-pkg/l2/l2_ch_file.c,v' 2>/dev/null --- 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;