diff options
author | Oliver Bolte <obo@openoffice.org> | 2005-05-02 12:20:05 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2005-05-02 12:20:05 +0000 |
commit | 1dfe95a34e1d40314a152a9cdbb79597672e6dc7 (patch) | |
tree | c8d5da2d8c230c587433798bd28badbfde56fa75 /sal | |
parent | 4ee8376e2784a793fa604a8168a43cbc2435fddc (diff) |
INTEGRATION: CWS hrobeta2 (1.4.64); FILE MERGED
2005/03/03 13:48:40 tra 1.4.64.1: #i42914# attribute osl_FileStatus_Mask_Attributes will not be removed anymore if user has no read rights for a file
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/unx/file_stat.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sal/osl/unx/file_stat.cxx b/sal/osl/unx/file_stat.cxx index 046c1efa0676..a7b8036db1e5 100644 --- a/sal/osl/unx/file_stat.cxx +++ b/sal/osl/unx/file_stat.cxx @@ -2,9 +2,9 @@ * * $RCSfile: file_stat.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: obo $ $Date: 2004-09-08 16:15:40 $ + * last change: $Author: obo $ $Date: 2005-05-02 13:20:05 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -166,10 +166,7 @@ namespace /* private */ */ pStat->uValidFields |= osl_FileStatus_Mask_Attributes; - if (0 == (S_IR & file_stat.st_mode)) - pStat->uValidFields &= ~osl_FileStatus_Mask_Attributes; - - if (0 == (S_IW & file_stat.st_mode)) + if ((0 == (S_IW & file_stat.st_mode)) && (S_IR & file_stat.st_mode)) pStat->uAttributes |= osl_File_Attribute_ReadOnly; if (S_IX & file_stat.st_mode) |