github.com/DaAlbrecht/cf-cli@v0.0.0-20231128151943-1fe19bb400b9/actor/v7action/fix_mode_windows.go (about)

     1  //go:build windows
     2  // +build windows
     3  
     4  package v7action
     5  
     6  import "os"
     7  
     8  // fixMode forces all files on windows to be executable because by default
     9  // everything on windows is read/write only. Even executable files.
    10  func fixMode(mode os.FileMode) os.FileMode {
    11  	return mode | 0700
    12  }