aboutsummaryrefslogtreecommitdiff
path: root/src/file.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2008-10-02 21:25:54 +0000
committerMike Buland <eichlan@xagasoft.com>2008-10-02 21:25:54 +0000
commit27a11c4e152ba767388ab790a124b6da00d4fc7f (patch)
treea95ddc0acfc9119d19549ca0cc4366deee39f528 /src/file.cpp
parent79ee32aa24e31d5bb786d0c162ad8145cc7c1f35 (diff)
downloadlibbu++-27a11c4e152ba767388ab790a124b6da00d4fc7f.tar.gz
libbu++-27a11c4e152ba767388ab790a124b6da00d4fc7f.tar.bz2
libbu++-27a11c4e152ba767388ab790a124b6da00d4fc7f.tar.xz
libbu++-27a11c4e152ba767388ab790a124b6da00d4fc7f.zip
Ok...now Bu::File doesn't set stupid permissions when it creates a new file...
Diffstat (limited to 'src/file.cpp')
-rw-r--r--src/file.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 29d2805..a058e0f 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -18,7 +18,7 @@ namespace Bu { subExceptionDef( FileException ) }
18Bu::File::File( const Bu::FString &sName, int iFlags ) : 18Bu::File::File( const Bu::FString &sName, int iFlags ) :
19 fd( -1 ) 19 fd( -1 )
20{ 20{
21 fd = ::open( sName.getStr(), getPosixFlags( iFlags ) ); 21 fd = ::open( sName.getStr(), getPosixFlags( iFlags ), 0666 );
22 if( fd < 0 ) 22 if( fd < 0 )
23 { 23 {
24 throw Bu::FileException( errno, "%s: %s", 24 throw Bu::FileException( errno, "%s: %s",