From c4b6accb8006c857dcb3c1f16cd1389e0652149a Mon Sep 17 00:00:00 2001 From: Matt White <436037+mlw@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:10:40 -0400 Subject: [PATCH 1/2] Update build deps --- Source/santactl/BUILD | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/santactl/BUILD b/Source/santactl/BUILD index 8d1467e33..e41ccc68a 100644 --- a/Source/santactl/BUILD +++ b/Source/santactl/BUILD @@ -115,6 +115,8 @@ santa_unit_test( "//Source/common:SNTFileInfo", "//Source/common:SNTLogging", "//Source/common:SNTRule", + "//Source/common:SNTStoredEvent", + "//Source/common:SNTXPCBundleServiceInterface", "//Source/common:SNTXPCControlInterface", "@MOLCertificate", "@MOLCodesignChecker", From 3da68c860c26b753c81ff0551adb935bb4df977a Mon Sep 17 00:00:00 2001 From: Matt White <436037+mlw@users.noreply.github.com> Date: Tue, 31 Oct 2023 14:14:05 -0400 Subject: [PATCH 2/2] lint --- Source/santactl/Commands/SNTCommandFileInfo.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Source/santactl/Commands/SNTCommandFileInfo.m b/Source/santactl/Commands/SNTCommandFileInfo.m index d9cdf1f9d..9888752b7 100644 --- a/Source/santactl/Commands/SNTCommandFileInfo.m +++ b/Source/santactl/Commands/SNTCommandFileInfo.m @@ -731,8 +731,10 @@ - (void)printInfoForFile:(NSString *)path { }]; int secondsToWait = 30; - if (dispatch_semaphore_wait(sema, dispatch_time(DISPATCH_TIME_NOW, secondsToWait * NSEC_PER_SEC))) { - fprintf(stderr, "The bundle service did not finish collecting hashes within %d seconds\n", secondsToWait); + if (dispatch_semaphore_wait(sema, + dispatch_time(DISPATCH_TIME_NOW, secondsToWait * NSEC_PER_SEC))) { + fprintf(stderr, "The bundle service did not finish collecting hashes within %d seconds\n", + secondsToWait); } outputDict[kBundleInfo] = bundleInfo;