From 80267f22b53c53ada19eaa28f6034d514e566c01 Mon Sep 17 00:00:00 2001 From: Zorg Date: Sun, 29 May 2016 11:28:38 -0400 Subject: [PATCH] Test if we are root for guided silent installs --- Sparkle/SUGuidedPackageInstaller.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sparkle/SUGuidedPackageInstaller.m b/Sparkle/SUGuidedPackageInstaller.m index 29f415da..b038ca04 100644 --- a/Sparkle/SUGuidedPackageInstaller.m +++ b/Sparkle/SUGuidedPackageInstaller.m @@ -94,7 +94,8 @@ - (BOOL)canInstallSilently { - return ![self mayNeedToRequestAuthorization]; + // Are we root? + return (geteuid() == 0); } - (BOOL)mayNeedToRequestAuthorization