summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorHennes Rohling <hro@openoffice.org>2001-05-28 09:27:17 +0000
committerHennes Rohling <hro@openoffice.org>2001-05-28 09:27:17 +0000
commit8dd0297b5c43a1cc2d12461222b2ce6599ca9950 (patch)
treed472f784937b59629227e792e02b97119dd8adcf /ucb
parentf07cdae97b88ad6842e1d94ca063d653ae6f4b0c (diff)
#83725# Solaris returns E_NOSYS instead of E_EXIST if trying to create a directory on an already mounted volume
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/file/shell.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/ucb/source/ucp/file/shell.cxx b/ucb/source/ucp/file/shell.cxx
index 04f101c7f7bf..cd00e919804b 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.43 $
+ * $Revision: 1.44 $
*
- * last change: $Author: obr $ $Date: 2001-05-28 09:37:11 $
+ * last change: $Author: hro $ $Date: 2001-05-28 10:27:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -2723,7 +2723,16 @@ sal_Bool SAL_CALL shell::ensuredir( const rtl::OUString& rUnqPath )
aPath = rUnqPath;
- osl::FileBase::RC nError = osl::Directory::create( aPath );
+ // HACK: create directory on a mount point with nobrowse option
+ // returns ENOSYS in any case !!
+ osl::Directory aDirectory( aPath );
+ osl::FileBase::RC nError = aDirectory.open();
+ aDirectory.close();
+
+ if( nError == osl::File::E_None )
+ return sal_True;
+
+ nError = osl::Directory::create( aPath );
sal_Bool bSuccess = (nError == osl::File::E_None || nError == osl::FileBase::E_EXIST);
if ( !bSuccess)