From a3324fbeea8b48d680bfdafd8af4af819e75f744 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 4 Jun 2008 16:24:49 +0000 Subject: [PATCH] print the rpc access list error message to Console --- macosx/PrefsController.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/macosx/PrefsController.m b/macosx/PrefsController.m index 4116f223e..532c3917b 100644 --- a/macosx/PrefsController.m +++ b/macosx/PrefsController.m @@ -671,8 +671,13 @@ NSString * string = [components componentsJoinedByString: @","]; - #warning check for an error! - tr_sessionSetRPCACL(fHandle, [string UTF8String], NULL); + char ** error = (char **)tr_malloc(sizeof(char **)); + if (tr_sessionSetRPCACL(fHandle, [string UTF8String], error)) + { + NSLog([NSString stringWithUTF8String: *error]); + tr_free(*error); + } + tr_free(error); } - (void) addRemoveRPCIP: (id) sender