diff options
author | Mike Buland <eichlan@xagasoft.com> | 2008-10-02 21:40:41 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2008-10-02 21:40:41 +0000 |
commit | 5883662909051e99093514483c32e2539a3cf850 (patch) | |
tree | 3ca9252df15529d243d703a4d2eb9ba70771a2c1 | |
parent | 27a11c4e152ba767388ab790a124b6da00d4fc7f (diff) | |
download | libbu++-5883662909051e99093514483c32e2539a3cf850.tar.gz libbu++-5883662909051e99093514483c32e2539a3cf850.tar.bz2 libbu++-5883662909051e99093514483c32e2539a3cf850.tar.xz libbu++-5883662909051e99093514483c32e2539a3cf850.zip |
Really fixed the rest of the file open issues...it was always using exclusive
mode.
-rw-r--r-- | src/file.cpp | 2 | ||||
-rw-r--r-- | test.taf | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/file.cpp b/src/file.cpp index a058e0f..6e9d47e 100644 --- a/src/file.cpp +++ b/src/file.cpp | |||
@@ -204,7 +204,7 @@ int Bu::File::getPosixFlags( int iFlags ) | |||
204 | if( (iFlags&NonBlock) ) | 204 | if( (iFlags&NonBlock) ) |
205 | iRet |= O_NONBLOCK; | 205 | iRet |= O_NONBLOCK; |
206 | #endif | 206 | #endif |
207 | if( (iFlags&Exclusive) ) | 207 | if( (iFlags&Exclusive) == Exclusive ) |
208 | iRet |= O_EXCL; | 208 | iRet |= O_EXCL; |
209 | 209 | ||
210 | return iRet; | 210 | return iRet; |
@@ -1,6 +1,6 @@ | |||
1 | {test: | 1 | {test: |
2 | {repo: | 2 | {repo: |
3 | url = http://svn.xagasoft.com/libbu++ | 3 | url = "http://svn.xagasoft.com/libbu++" |
4 | name = libbu++ | 4 | name = libbu++ |
5 | } | 5 | } |
6 | } | 6 | } |