mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
fix(libstack): data loss for stack with relative path [FR-437] (#548)
This commit is contained in:
parent
a61c1004d3
commit
4b218553c3
2 changed files with 6 additions and 1 deletions
|
@ -68,7 +68,7 @@ func copyFile(src, dst string) error {
|
|||
defer from.Close()
|
||||
|
||||
// has to include 'execute' bit, otherwise fails. MkdirAll follows `mkdir -m` restrictions
|
||||
if err := os.MkdirAll(filepath.Dir(dst), 0744); err != nil {
|
||||
if err := os.MkdirAll(filepath.Dir(dst), 0755); err != nil {
|
||||
return err
|
||||
}
|
||||
to, err := os.Create(dst)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue