summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorPhilipp Lohmann <pl@openoffice.org>2002-05-13 16:02:56 +0000
committerPhilipp Lohmann <pl@openoffice.org>2002-05-13 16:02:56 +0000
commit6e3cb1d159f4122744731d06ab468f9effd12e5f (patch)
tree6451fd80b143dd28b395e4072ecd64828a807201 /ucb
parent1db4eb29280e981f2279e8fc8f39c4d998f13f16 (diff)
#i4735# better handling of EROFS
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/filglob.cxx3
-rw-r--r--ucb/source/ucp/file/shell.cxx5
2 files changed, 6 insertions, 2 deletions
diff --git a/ucb/source/ucp/file/filglob.cxx b/ucb/source/ucp/file/filglob.cxx
index ba7c30a07783..6cc0eb6df9b6 100644
--- a/ucb/source/ucp/file/filglob.cxx
+++ b/ucb/source/ucp/file/filglob.cxx
@@ -396,6 +396,7 @@ namespace fileaccess {
case FileBase::E_NOENT: // No such file or directory<br>
ioErrorCode = IOErrorCode_NOT_EXISTING;
break;
+ case FileBase::E_ROFS: // #i4735# handle ROFS transparently as ACCESS_DENIED
case FileBase::E_ACCES: // permission denied<P>
ioErrorCode = IOErrorCode_ACCESS_DENIED;
break;
@@ -454,6 +455,7 @@ namespace fileaccess {
case FileBase::E_NOMEM: // not enough memory for allocating structures <br>
ioErrorCode = IOErrorCode_OUT_OF_MEMORY;
break;
+ case FileBase::E_ROFS: // #i4735# handle ROFS transparently as ACCESS_DENIED
case FileBase::E_ACCES: // permission denied<br>
ioErrorCode = IOErrorCode_ACCESS_DENIED;
break;
@@ -596,6 +598,7 @@ namespace fileaccess {
case FileBase::E_NOMEM: // not enough memory for allocating structures <br>
ioErrorCode = IOErrorCode_OUT_OF_MEMORY;
break;
+ case FileBase::E_ROFS: // #i4735# handle ROFS transparently as ACCESS_DENIED
case FileBase::E_ACCES: // permission denied<br>
ioErrorCode = IOErrorCode_ACCESS_DENIED;
break;
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx
index 2229017144ae..2027dfb0a3f1 100644
--- a/ucb/source/ucp/file/shell.cxx
+++ b/ucb/source/ucp/file/shell.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: shell.cxx,v $
*
- * $Revision: 1.70 $
+ * $Revision: 1.71 $
*
- * last change: $Author: abi $ $Date: 2002-02-27 12:25:59 $
+ * last change: $Author: pl $ $Date: 2002-05-13 17:02:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1018,6 +1018,7 @@ shell::setv( sal_Int32 CommandId,
case osl::FileBase::E_NOLINK: // Link has been severed<br>
ioError = IOErrorCode_NOT_EXISTING;
break;
+ case osl::FileBase::E_ROFS: // #i4735# handle ROFS transparently as ACCESS_DENIED
case osl::FileBase::E_ACCES: // permission denied<br>
ioError = IOErrorCode_ACCESS_DENIED;
break;