From 4db844de52915d73270c92684ba34ef61d5f07b2 Mon Sep 17 00:00:00 2001 From: apenwarr Date: Sat, 13 Feb 1999 21:01:36 +0000 Subject: [PATCH] Added /sbin/hwclock. Added O_TRUNC on most file create calls (oops... that should have been done LONG ago!) git-svn-id: file:///home/apenwarr/alumnit-svn/public/trunk@75 6619c942-59fa-0310-bf43-a07aaa81d9ac --- wvpapchap.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wvpapchap.cc b/wvpapchap.cc index 7bca703..b042dd5 100644 --- a/wvpapchap.cc +++ b/wvpapchap.cc @@ -82,7 +82,7 @@ bool WvPapChap::write_file( char * filename ) /*******************************************/ // Writes the "contents" list to the file, one entry per line. { - WvFile file( filename, O_WRONLY | O_CREAT, S_IRUSR | S_IWUSR ); + WvFile file( filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR ); if( file.isok() == false ) return( false );