Commit 340dd57d authored by Leigh B Stoller's avatar Leigh B Stoller

Add a setuid check.

parent 52e4ecbb
......@@ -90,6 +90,14 @@ $| = 1;
$ENV{'PATH'} = "/bin:/sbin:/usr/bin:";
delete @ENV{'IFS', 'CDPATH', 'ENV', 'BASH_ENV'};
# We don't want to run this script unless its the real version.
if ($EUID != 0) {
die("*** $0:\n".
" Must be setuid! Maybe its a development version?\n");
sub cleanup();
sub fatal($);
sub check_progress($$);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment