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:
parent
bf0ae486cb
commit
4db844de52
|
@ -82,7 +82,7 @@ bool WvPapChap::write_file( char * filename )
|
||||||
/*******************************************/
|
/*******************************************/
|
||||||
// Writes the "contents" list to the file, one entry per line.
|
// 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 )
|
if( file.isok() == false )
|
||||||
return( false );
|
return( false );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue