Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emulab
emulab-stable
Commits
d58e182f
Commit
d58e182f
authored
Apr 26, 2007
by
Leigh B. Stoller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor fix to previous revision.
parent
13977b2f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
tbsetup/frisbeelauncher.in
tbsetup/frisbeelauncher.in
+4
-6
No files found.
tbsetup/frisbeelauncher.in
View file @
d58e182f
...
...
@@ -91,13 +91,10 @@ usage()
if
(
!
@ARGV
);
#
# Verify user and get his DB uid and other info for later.
# Verify user and get his DB uid and other info for later. Note that
# root can run this script, so we might not get an actual user.
#
my
$this_user
=
User
->
ThisUser
();
if
(
!
defined
(
$this_user
))
{
Fatal
("
You (
$UID
) do not exist!
");
}
my
$user_uid
=
$this_user
->
uid
();
#
# Grab the Image.
...
...
@@ -112,7 +109,8 @@ my $filename = $image->path();
#
# Make sure that the user has sufficient permissions.
#
if
(
!
$image
->
AccessCheck
(
$this_user
,
if
(
defined
(
$this_user
)
&&
!
$image
->
AccessCheck
(
$this_user
,
(
$killmode
?
TB_IMAGEID_DESTROY
:
TB_IMAGEID_READINFO
)))
{
Fatal
("
Not enough permission!
");
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment