From 12c8522b33598d53fe44449fada318170350d334 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 14 Mar 2015 20:19:52 +0100 Subject: [PATCH] Fix file mode for data blobs --- backend/local.go | 2 +- backend/sftp.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/local.go b/backend/local.go index 56f8f6a1f..58c7dde2f 100644 --- a/backend/local.go +++ b/backend/local.go @@ -215,7 +215,7 @@ func (b *Local) renameFile(file *os.File, t Type, id ID) error { return err } - return os.Chmod(filename, fi.Mode()&os.FileMode(^uint32(0111))) + return os.Chmod(filename, fi.Mode()&os.FileMode(^uint32(0222))) } // Construct directory for given Type. diff --git a/backend/sftp.go b/backend/sftp.go index 8ec68fde7..4a3ec041e 100644 --- a/backend/sftp.go +++ b/backend/sftp.go @@ -323,7 +323,7 @@ func (r *SFTP) renameFile(oldname string, t Type, id ID) error { return err } - return r.c.Chmod(filename, fi.Mode()&os.FileMode(^uint32(0111))) + return r.c.Chmod(filename, fi.Mode()&os.FileMode(^uint32(0222))) } // Construct directory for given Type.