diff options
author | sb <sb@openoffice.org> | 2009-11-02 10:15:56 +0100 |
---|---|---|
committer | sb <sb@openoffice.org> | 2009-11-02 10:15:56 +0100 |
commit | 3ccd559f44ccfe69940e7933c4261cf02a41a699 (patch) | |
tree | 5dbb9ca627bf50536ce05795765a20bb59d77e87 | |
parent | 6f8b9d15d0dd083a1a069e026b55a97a3f5e1355 (diff) |
sb111: #i101955# silently ignore a r/o user installation (not storing new changes being made)
-rw-r--r-- | configmgr2/source/writemodfile.cxx | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/configmgr2/source/writemodfile.cxx b/configmgr2/source/writemodfile.cxx index baca6f747c68..b2fe14898658 100644 --- a/configmgr2/source/writemodfile.cxx +++ b/configmgr2/source/writemodfile.cxx @@ -552,6 +552,11 @@ void writeModFile( case osl::FileBase::E_None: case osl::FileBase::E_EXIST: break; + case osl::FileBase::E_ACCES: + OSL_TRACE( + "cannot create registrymodifications.xcu path (E_ACCES); changes" + " will be lost"); + return; default: throw css::uno::RuntimeException( (rtl::OUString( @@ -560,9 +565,15 @@ void writeModFile( css::uno::Reference< css::uno::XInterface >()); } TempFile tmp; - if (osl::FileBase::createTempFile(&dir, &tmp.handle, &tmp.url) != - osl::FileBase::E_None) - { + switch (osl::FileBase::createTempFile(&dir, &tmp.handle, &tmp.url)) { + case osl::FileBase::E_None: + break; + case osl::FileBase::E_ACCES: + OSL_TRACE( + "cannot create temp registrymodifications.xcu (E_ACCES); changes" + " will be lost"); + return; + default: throw css::uno::RuntimeException( (rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( |