Commit ff98a228 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Fix to previous revision; root needs to be able to reboot nodes

(called from reload_daemon).
parent c7aff1fd
#!/usr/bin/perl -wT #!/usr/bin/perl -wT
# #
# EMULAB-COPYRIGHT # EMULAB-COPYRIGHT
# Copyright (c) 2000-2007 University of Utah and the Flux Group. # Copyright (c) 2000-2008 University of Utah and the Flux Group.
# All rights reserved. # All rights reserved.
# #
use strict; use strict;
...@@ -79,10 +79,13 @@ if ($EUID != 0) { ...@@ -79,10 +79,13 @@ if ($EUID != 0) {
# #
# Verify user and get his DB uid and other info for later. # Verify user and get his DB uid and other info for later.
# #
my $this_user = User->ThisUser(); my $this_user;
if (! defined($this_user)) { if ($UID) {
die("*** $0:\n". $this_user = User->ThisUser();
" You ($UID) do not exist!\n"); if (! defined($this_user)) {
die("*** $0:\n".
" You ($UID) do not exist!\n");
}
} }
# #
......
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