nixpkgs/pkgs/by-name/ma/matrix-media-repo/synapse-import-u+x.patch
2024-05-22 22:03:24 +00:00

23 lines
973 B
Diff

diff --git a/cmd/homeserver_offline_exporters/import_to_synapse/main.go b/cmd/homeserver_offline_exporters/import_to_synapse/main.go
index 3c7db1e..c6cba4f 100644
--- a/cmd/homeserver_offline_exporters/import_to_synapse/main.go
+++ b/cmd/homeserver_offline_exporters/import_to_synapse/main.go
@@ -78,7 +78,7 @@ func main() {
ctx.Log.Infof("Copying %s", mxc)
directories := path.Join(cfg.ExportPath, "local_content", record.MediaId[0:2], record.MediaId[2:4])
- err = os.MkdirAll(directories, 0655)
+ err = os.MkdirAll(directories, 0755)
if err != nil {
return err
}
@@ -134,7 +134,7 @@ func main() {
dirLock.Lock()
defer dirLock.Unlock()
thumbDir := path.Join(cfg.ExportPath, "local_thumbnails", record.MediaId[0:2], record.MediaId[2:4], record.MediaId[4:])
- err = os.MkdirAll(thumbDir, 0655)
+ err = os.MkdirAll(thumbDir, 0755)
if err != nil {
ctx.Log.Warn("Error creating thumbnail directories. ", s, err)
return