diff options
author | Nils Fuhrmann <nf@openoffice.org> | 2001-09-20 15:25:11 +0000 |
---|---|---|
committer | Nils Fuhrmann <nf@openoffice.org> | 2001-09-20 15:25:11 +0000 |
commit | 33e7a71001d5b74dbe7a62a1f9bac77dd2a5cb20 (patch) | |
tree | 3c6489824882def61f30a6f1f88d02e9ce95c412 /tools | |
parent | 8a45e12c8e4b88bd63326ee7a9e0ddb3116394a4 (diff) |
Remove write protection before file IO
Diffstat (limited to 'tools')
-rw-r--r-- | tools/bootstrp/prj.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/bootstrp/prj.cxx b/tools/bootstrp/prj.cxx index 8c7ac268d1bd..5333057488df 100644 --- a/tools/bootstrp/prj.cxx +++ b/tools/bootstrp/prj.cxx @@ -2,9 +2,9 @@ * * $RCSfile: prj.cxx,v $ * - * $Revision: 1.17 $ + * $Revision: 1.18 $ * - * last change: $Author: nf $ $Date: 2001-09-20 16:21:24 $ + * last change: $Author: nf $ $Date: 2001-09-20 16:25:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1325,6 +1325,8 @@ USHORT StarWriter::Write( String aFileName ) { sFileName = aFileName; + FileStat::SetReadOnlyFlag( DirEntry( aFileName ), FALSE ); + SvFileStream aFileStream; aFileStream.Open( aFileName, STREAM_WRITE | STREAM_TRUNC); @@ -1371,6 +1373,8 @@ USHORT StarWriter::WriteMultiple( String rSourceRoot ) aEntry += DirEntry( sPrjDir ); aEntry += DirEntry( sSolarFile ); + FileStat::SetReadOnlyFlag( aEntry, FALSE ); + SvFileStream aFileStream; aFileStream.Open( aEntry.GetFull(), STREAM_WRITE | STREAM_TRUNC); |