Skip to content

Commit

Permalink
Merge pull request #4139 from marcosdiez/proper_permissions
Browse files Browse the repository at this point in the history
BugFix:  ExecRunner.Copy now parses permissions strings as octal
  • Loading branch information
tstromberg authored Apr 25, 2019
2 parents b497fad + 10d75b8 commit b2f0cd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/minikube/bootstrapper/exec_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func (*ExecRunner) Copy(f assets.CopyableFile) error {
if err != nil {
return errors.Wrapf(err, "error creating file at %s", targetPath)
}
perms, err := strconv.Atoi(f.GetPermissions())
perms, err := strconv.ParseInt(f.GetPermissions(), 8, 0)
if err != nil {
return errors.Wrapf(err, "error converting permissions %s to integer", f.GetPermissions())
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/minikube/machine/cache_binaries.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ func CacheBinary(binary, version string) (string, error) {

// CopyBinary copies previously cached binaries into the path
func CopyBinary(cr bootstrapper.CommandRunner, binary, path string) error {
f, err := assets.NewFileAsset(path, "/usr/bin", binary, "0641")
f, err := assets.NewFileAsset(path, "/usr/bin", binary, "0755")
if err != nil {
return errors.Wrap(err, "new file asset")
}
Expand Down

0 comments on commit b2f0cd8

Please sign in to comment.