Commit eb0d7426 authored by Jakob Borg's avatar Jakob Borg

Chmod error should not be fatal (fixes #612)

parent d9b0a737
......@@ -1003,7 +1003,10 @@ func ensureDir(dir string, mode int) {
l.FatalErr(err)
} else if mode >= 0 && err == nil && int(fi.Mode()&0777) != mode {
err := os.Chmod(dir, os.FileMode(mode))
l.FatalErr(err)
// This can fail on crappy filesystems, nothing we can do about it.
if err != nil {
l.Warnln(err)
}
}
}
......
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