From d7d6a318376620531ccaa4044264c68c1c348fa4 Mon Sep 17 00:00:00 2001 From: Jean Raby Date: Tue, 11 Dec 2012 09:34:06 -0500 Subject: [PATCH] use fileAttributesAtPath attributesOfItemAtPath is not available in older GNUstep releases. Broke build on squeeze and lucid. --- SoObjects/SOGo/SOGoSystemDefaults.m | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/SoObjects/SOGo/SOGoSystemDefaults.m b/SoObjects/SOGo/SOGoSystemDefaults.m index 3393c57f0..31f96f02c 100644 --- a/SoObjects/SOGo/SOGoSystemDefaults.m +++ b/SoObjects/SOGo/SOGoSystemDefaults.m @@ -87,20 +87,19 @@ static void _injectConfigurationFromFile (NSUserDefaults *ud, NSString *filename, NSObject *logger) { - NSDictionary *newConfig,*fileAttrs; - NSError *fmError = nil; + NSDictionary *newConfig, *fileAttrs; NSFileManager *fm; fm = [NSFileManager defaultManager]; if ([fm fileExistsAtPath: filename]) { - fileAttrs = [fm attributesOfItemAtPath: filename - error: &fmError]; + fileAttrs = [fm fileAttributesAtPath: filename + traverseLink: YES]; if (![fileAttrs objectForKey: @"NSFileSize"]) { [logger errorWithFormat: - @"Can't get file attributes from '%@': %@", - filename, [fmError description]]; + @"Can't get file attributes from '%@'", + filename]; exit(1); } if ([[fileAttrs objectForKey: @"NSFileSize"] intValue] == 0 )