Fix permisions on downloaded files.
parent
c9138f40af
commit
3b083c205b
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue