diff --git a/docs/Homebrew.html b/docs/Homebrew.html index bf33482ee..f77f1dd39 100644 --- a/docs/Homebrew.html +++ b/docs/Homebrew.html @@ -18722,8 +18722,8 @@

# File 'global.rb', line 108
 
 def running_as_root?
-  @process_uid ||= Process.uid
-  @process_uid.zero?
+  @process_euid ||= Process.euid
+  @process_euid.zero?
 end
diff --git a/docs/Utils.html b/docs/Utils.html index 2c9aa0670..4e7b9ece2 100644 --- a/docs/Utils.html +++ b/docs/Utils.html @@ -1791,7 +1791,10 @@

101 102 103 -104 +104 +105 +106 +107
# File 'utils/fork.rb', line 32
@@ -1809,6 +1812,9 @@ 

server.close read.close write.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) + + Process::UID.change_privilege(Process.euid) if Process.euid != Process.uid + yield rescue Exception => e # rubocop:disable Lint/RescueException error_hash = JSON.parse e.to_json