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
This commit is contained in:
apenwarr 1999-02-13 21:01:36 +00:00
parent bf0ae486cb
commit 4db844de52
1 changed files with 1 additions and 1 deletions

View File

@ -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 );