Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Resolves plugin permission change (Windows)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcooklin committed Feb 1, 2016
1 parent d7b4897 commit 28c31c3
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions mgmt/rest/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import (
"os"
"path"
"path/filepath"
"runtime"
"strconv"
"strings"

Expand Down Expand Up @@ -200,9 +201,11 @@ func writeFile(filename string, b []byte) (string, error) {
if err != nil {
return "", err
}
err = f.Chmod(0700)
if err != nil {
return "", err
if runtime.GOOS != "windows" {
err = f.Chmod(0700)
if err != nil {
return "", err
}
}
// Close before load
f.Close()
Expand Down

0 comments on commit 28c31c3

Please sign in to comment.