summaryrefslogtreecommitdiffstats
path: root/sal
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-05-02 12:20:05 +0000
committerOliver Bolte <obo@openoffice.org>2005-05-02 12:20:05 +0000
commit1dfe95a34e1d40314a152a9cdbb79597672e6dc7 (patch)
treec8d5da2d8c230c587433798bd28badbfde56fa75 /sal
parentINTEGRATION: CWS macosx06 (1.7.10); FILE MERGED (diff)
downloadcore-1dfe95a34e1d40314a152a9cdbb79597672e6dc7.tar.gz
core-1dfe95a34e1d40314a152a9cdbb79597672e6dc7.zip
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.cxx9
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)