From 3879f8e90966defdfd77dfd428ed7dc9e47b91c0 Mon Sep 17 00:00:00 2001 From: rfm Date: Thu, 31 Oct 2024 19:04:45 +0000 Subject: [PATCH] Fix logic of test for changed information for tidy object dates. --- ChangeLog | 5 +++++ Source/GSServicesManager.m | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index d979c7c7d4..04f73a385b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2024-10-31 Richard Frith-Macdonald + + * Source/GSServicesManager.m: fix -laterDate: conditionals to be true + only when file date has been updated (returned value != receiver). + 2024-10-29 Fred Kiefer * Headers/AppKit/NSLayoutAnchor.h: Add missing include that is required after a change in base. diff --git a/Source/GSServicesManager.m b/Source/GSServicesManager.m index 9cb2bb5a2f..f723861666 100644 --- a/Source/GSServicesManager.m +++ b/Source/GSServicesManager.m @@ -864,7 +864,8 @@ - (void) loadServices attr = [mgr fileAttributesAtPath: _disabledPath traverseLink: YES]; mod = [attr objectForKey: NSFileModificationDate]; - if (_disabledStamp == nil || [_disabledStamp laterDate: mod] == mod) + if (_disabledStamp == nil + || [_disabledStamp laterDate: mod] != _disabledStamp) { NSData *data; id plist = nil; @@ -895,7 +896,8 @@ - (void) loadServices attr = [mgr fileAttributesAtPath: _servicesPath traverseLink: YES]; mod = [attr objectForKey: NSFileModificationDate]; - if (_servicesStamp == nil || [_servicesStamp laterDate: mod] == mod) + if (_servicesStamp == nil + || [_servicesStamp laterDate: mod] != _servicesStamp) { NSData *data; id plist = nil;