Commit 2136eff4 authored by Robert Ricci's avatar Robert Ricci

Added a permissions check, to make sure that the user has the right to open

the image file. Previously, if the user did not, the frisbeed process would
not start properly, but nothing would complain.
parent 372b321f
......@@ -50,6 +50,11 @@ if (!$address) {
# Grab the filename to give to frisbee
my $filename = &get_filename($imageid);
# Make sure that the user can read the image file or bomb out right now.
if (! -r $filename) {
die "You don't have permission to read the image file for imageid $imageid: $filename\n";
}
# Run in the background
if (TBBackGround($LOGFILE)) {
exit(0);
......
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