]> Sergey Matveev's repositories - btrtrc.git/commitdiff
Need executable permissions on torrent data directories
authorMatt Joiner <anacrolix@gmail.com>
Sun, 6 Oct 2013 10:12:44 +0000 (21:12 +1100)
committerMatt Joiner <anacrolix@gmail.com>
Sun, 6 Oct 2013 10:12:44 +0000 (21:12 +1100)
client.go

index 6514748b5e33c5489754ef020255552613e3266c..7247321b248554f8291bc9eb0aa36855547d6c41 100644 (file)
--- a/client.go
+++ b/client.go
@@ -290,7 +290,7 @@ func mmapTorrentData(metaInfo *metainfo.MetaInfo, location string) (mms MMapSpan
        }()
        for _, miFile := range metaInfo.Files {
                fileName := filepath.Join(append([]string{location, metaInfo.Name}, miFile.Path...)...)
-               err = os.MkdirAll(filepath.Dir(fileName), 0666)
+               err = os.MkdirAll(filepath.Dir(fileName), 0777)
                if err != nil {
                        return
                }