mirror of
https://github.com/octoleo/restic.git
synced 2024-11-30 00:33:57 +00:00
Fix file mode for data blobs
This commit is contained in:
parent
e896a33c43
commit
12c8522b33
@ -215,7 +215,7 @@ func (b *Local) renameFile(file *os.File, t Type, id ID) error {
|
|||||||
return err
|
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.
|
// Construct directory for given Type.
|
||||||
|
@ -323,7 +323,7 @@ func (r *SFTP) renameFile(oldname string, t Type, id ID) error {
|
|||||||
return err
|
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.
|
// Construct directory for given Type.
|
||||||
|
Loading…
Reference in New Issue
Block a user