Fix permisions on downloaded files.

master
Robert S. Gerus 2015-12-23 10:01:21 +01:00
parent c9138f40af
commit 3b083c205b
1 changed files with 5 additions and 0 deletions

View File

@ -94,6 +94,11 @@ func fourchanscrape(l string) string {
return "error while renaming tempfile"
}
err = os.Chmod(dest, 0644)
if err != nil {
return "error while correcting permisions"
}
return path.Join(cfg.LookupString(nil, "FourChanLinkBase"), filename)
}