From 27a11c4e152ba767388ab790a124b6da00d4fc7f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Thu, 2 Oct 2008 21:25:54 +0000 Subject: Ok...now Bu::File doesn't set stupid permissions when it creates a new file... --- src/file.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/file.cpp') 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 ) } Bu::File::File( const Bu::FString &sName, int iFlags ) : fd( -1 ) { - fd = ::open( sName.getStr(), getPosixFlags( iFlags ) ); + fd = ::open( sName.getStr(), getPosixFlags( iFlags ), 0666 ); if( fd < 0 ) { throw Bu::FileException( errno, "%s: %s", -- cgit v1.2.3