Merge pull request #17734 from scottwinkler/master
Keep permissions when copying file for Linux
This commit is contained in:
commit
da3b4e9abc
|
@ -51,6 +51,7 @@ func CopyFile(src, dst string) (err error) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
err = copyFileContents(src, dst)
|
err = copyFileContents(src, dst)
|
||||||
|
os.Chmod(dst, sfi.Mode())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue