diff options
author | pixel <pixel> | 2003-11-07 12:53:41 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-11-07 12:53:41 +0000 |
commit | d844127caa4680f6877bd3ae12869882d3d34740 (patch) | |
tree | cd973d66c78ffe432becd4077256de2d0541b5f7 | |
parent | bb6ade743cea6ba6f4f8746a12d52fd1886f4db9 (diff) |
Little harmless fix...
-rw-r--r-- | lib/Output.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Output.cc b/lib/Output.cc index 82940f6..b4ed359 100644 --- a/lib/Output.cc +++ b/lib/Output.cc @@ -21,12 +21,12 @@ #endif Output::Output(String no, int create, int trunc) throw (GeneralException) : - Handle(no.strlen() ? open(no.to_charp(), O_WRONLY | (O_CREAT * (create ? 1 : 0)) | (O_TRUNC * (trunc ? 1 : 0)) + Handle(no.strlen() ? open(no.to_charp(), (create ? O_CREAT : 0) | (trunc ? O_TRUNC : 0) #ifdef _WIN32 -| O_BINARY +| O_RDWR | O_BINARY #endif #if defined __linux__ || defined __CYGWIN32__ -, 00666 +| O_WRONLY, 00666 #endif ) : dup(1)), n(no) { |