Commit 4b82df63 authored by Mike Hibler's avatar Mike Hibler

Don't require root for rc.topomap on Windows.

Linktest runs it, and not as root.
parent 91de4fe3
......@@ -22,12 +22,6 @@ $| = 1;
# Drag in path stuff so we can find emulab stuff.
BEGIN { require "/etc/emulab/paths.pm"; import emulabpaths; }
# Only root.
if ($EUID != 0) {
die("*** $0:\n".
" Must be root to run this script!\n");
}
#
# Load the OS independent support library. It will load the OS dependent
# library and initialize itself.
......@@ -36,6 +30,13 @@ use libsetup;
use libtmcc;
use librc;
# Only root.
# XXX on Windows we let non-root run this since linktest does not run as root.
if ($EUID != 0 && !WINDOWS()) {
die("*** $0:\n".
" Must be root to run this script!\n");
}
#
# Not all clients support this.
#
......
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