Commit 0dea1b9c authored by Mike Hibler's avatar Mike Hibler
Browse files

Make sure the empty image file we create is group writable.

create_image runs as the invoking user but the frisbee uploader may
run as a different user (the creator of the image). If the file is
not group writable, we will get a permission denied error in the
parent c056a910
......@@ -736,6 +736,14 @@ open(FILE, "> $tmp") or
fatal("Could not create $tmp: $!");
close(FILE) or
fatal("Could not truncate $tmp: $!");
# XXX this script runs as the user creating the image.
# However, in the uploader case, the uploader runs as the creator of
# the image. In the case those two are not the same, we need to make
# sure that the file we create here is group writable.
chmod(0664, $tmp) or
fatal("Could not make $tmp group writable: $!");
if (! ($isvirtnode || $isec2node)) {
Supports Markdown
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