Prevent making uploaded file executable for everyone

Closes #56
This commit is contained in:
Marius 2016-07-25 20:59:01 +02:00
parent fbf378547e
commit 96d9e5bbd4
2 changed files with 2 additions and 2 deletions

View File

@ -25,7 +25,7 @@ func CreateComposer() {
dir := Flags.UploadDir
stdout.Printf("Using '%s' as directory storage.\n", dir)
if err := os.MkdirAll(dir, os.FileMode(0775)); err != nil {
if err := os.MkdirAll(dir, os.FileMode(0774)); err != nil {
stderr.Fatalf("Unable to ensure directory exists: %s", err)
}

View File

@ -28,7 +28,7 @@ import (
"github.com/nightlyone/lockfile"
)
var defaultFilePerm = os.FileMode(0775)
var defaultFilePerm = os.FileMode(0664)
// See the tusd.DataStore interface for documentation about the different
// methods.