Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
9bfe0066
Commit
9bfe0066
authored
Apr 14, 2003
by
Leigh B. Stoller
Browse files
Fix error in final image size report, as reported by Eric.
parent
50fc757a
Changes
1
Hide whitespace changes
Inline
Side-by-side
utils/create_image.in
View file @
9bfe0066
...
...
@@ -190,6 +190,12 @@ if ($mereuser &&
# We test this by creating the file. Its going to get wiped anyway.
#
my
$filename
=
$imageid_row
{'
path
'};
my
$isglobal
=
$imageid_row
{'
global
'};
#
# If a global image, make up a name. Admin person will need to copy image
# to boss.
#
# Untaint. Very silly.
if
(
$filename
=~
/^([-\w\.\/\+]+)$/
)
{
...
...
@@ -410,7 +416,8 @@ if ($cursize > $maximagesize) {
fatal
("
FAILED: Maximum image size (
$maximagesize
bytes) exceeded ...
\n
");
}
print
"
Image creation succeeded. Final size:
$cursize
bytes.
\n
";
print
"
Image creation succeeded.
"
.
"
Final size:
"
.
(
stat
(
$filename
))[
7
]
.
"
bytes.
\n
";
SENDMAIL
("
$user_name
<
$user_email
>
",
"
Image Creation on
$node
Completed:
$pid
/
$imagename
",
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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