update dev300-m58
[ooovba.git] / applied_patches / 0079-desktop-application-octet-stream-mime-type.diff
blobe02efcd262f81896d86db9df3128228b969c8f7b
1 Index: desktop/source/deployment/registry/package/dp_package.cxx
2 ===================================================================
3 RCS file: /cvs/framework/desktop/source/deployment/registry/package/dp_package.cxx,v
4 retrieving revision 1.10.16.1
5 diff -u -r1.10.16.1 dp_package.cxx
6 --- desktop/source/deployment/registry/package/dp_package.cxx 10 Aug 2006 16:37:23 -0000 1.10.16.1
7 +++ desktop/source/deployment/registry/package/dp_package.cxx 9 Jan 2007 13:35:24 -0000
8 @@ -1295,7 +1295,21 @@
9 if (param != 0 && !platform_fits( param->m_sValue ))
10 continue;
11 const OUString url( makeURL( packageRootURL, fullPath ) );
14 + INetContentTypeParameter const * execParam = params.find(
15 + ByteString("executable") );
16 + if (execParam!=0 && execParam->m_sValue.CompareIgnoreCaseToAscii("true")==COMPARE_EQUAL) {
17 + ::rtl::OUString expandedUrl=expandUnoRcUrl(url);
18 + oslFileError err=osl_setFileAttributes( expandedUrl.pData, osl_File_Attribute_OwnRead | osl_File_Attribute_OwnExe);
19 + }
21 + if (type.EqualsIgnoreCaseAscii("application") &&
22 + subType.EqualsIgnoreCaseAscii(
23 + "octet-stream"))
24 + {
25 + continue;
26 + }
28 // check for bundle description:
29 if (type.EqualsIgnoreCaseAscii("application") &&
30 subType.EqualsIgnoreCaseAscii(