Skip to content

Commit

Permalink
fix file permissions when generating profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendrixMSFT committed Apr 19, 2019
1 parent 59aa4f0 commit 838bff6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/profileBuilder/model/transforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ func BuildProfile(packageList ListDefinition, name, outputLocation string, outpu
}
aliasPath = filepath.Join(outputLocation, aliasPath)
if _, err := os.Stat(aliasPath); os.IsNotExist(err) {
err = os.MkdirAll(aliasPath, os.ModeDir)
err = os.MkdirAll(aliasPath, os.ModeDir|0755)
if err != nil {
errLog.Fatalf("failed to create alias directory: %v", err)
}
Expand Down Expand Up @@ -182,7 +182,7 @@ func updateAliasPackageUserAgent(ap *AliasPackage, profileName string) {
func writeAliasPackage(ap *AliasPackage, outputPath string, outputLog, errLog *log.Logger) {
files := token.NewFileSet()

err := os.MkdirAll(path.Dir(outputPath), os.ModePerm|os.ModeDir)
err := os.MkdirAll(path.Dir(outputPath), 0755|os.ModeDir)
if err != nil {
errLog.Fatalf("error creating directory: %v", err)
}
Expand Down

0 comments on commit 838bff6

Please sign in to comment.