mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-27 05:04:27 +00:00
Test if we are root for guided silent installs
This commit is contained in:
1 parent
da145b2100
commit
80267f22b5
1 file changed
+2
-1
Vendored
+2
-1
@@ -94,7 +94,8 @@
|
||||
|
||||
- (BOOL)canInstallSilently
|
||||
{
|
||||
return ![self mayNeedToRequestAuthorization];
|
||||
// Are we root?
|
||||
return (geteuid() == 0);
|
||||
}
|
||||
|
||||
- (BOOL)mayNeedToRequestAuthorization
|
||||
|
||||
Reference in new issue
Block a user