From e376b60c66c50c350381a19e7ab5fa2984c1238d Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Tue, 18 Oct 2011 01:13:45 +0000 Subject: [PATCH] Monotone-Parent: eda5c525a4bff80cf6f3bc99808aeca62b525c78 Monotone-Revision: f547e80f0b37a2309a16da53656017a4ee10f80b Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2011-10-18T01:13:45 Monotone-Branch: ca.inverse.sogo --- ChangeLog | 2 +- OpenChange/MAPIStoreSOGo.m | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index b4994af30..f532ca937 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,7 +3,7 @@ * OpenChange/MAPIStoreSOGo.m (sogo_backend_init): invoke -[NSProcessInfo initializeWithArguments:count:environment:] in order to avoid an infinite loop with GNUstep occurring under - strange circumstances. + strange circumstances. Make use of "samba" as process name. * OpenChange/MAPIStoreMapping.m (-initForUsername:withIndexing:): attach the struct tdb_wrap *indexing to a new memCtx ivar, in diff --git a/OpenChange/MAPIStoreSOGo.m b/OpenChange/MAPIStoreSOGo.m index 0d7ba1ade..6f1ca6a06 100644 --- a/OpenChange/MAPIStoreSOGo.m +++ b/OpenChange/MAPIStoreSOGo.m @@ -70,6 +70,7 @@ sogo_backend_init (void) Class MAPIApplicationK; NSUserDefaults *ud; SoProductRegistry *registry; + char *argv0 = "openchange"; pool = [NSAutoreleasePool new]; @@ -78,8 +79,8 @@ sogo_backend_init (void) the encoding specified in the file. */ putenv ("GNUSTEP_STRING_ENCODING=NSUTF8StringEncoding"); - [NSProcessInfo initializeWithArguments: NULL - count: 0 + [NSProcessInfo initializeWithArguments: &argv0 + count: 1 environment: environ]; [SOGoSystemDefaults sharedSystemDefaults];