A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/segmentio/aws-okta/commit/3ab9dff62ed0164287aaeaa3cb27ad0b15ce27c4 below:

Set O_TRUNC when re-writing credentials file (#292) · segmentio/aws-okta@3ab9dff · GitHub

This repository was archived by the owner on May 18, 2021. It is now read-only.

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -125,7 +125,7 @@ func writeToCredentialsRun(cmd *cobra.Command, args []string) error {

125 125

section.Key("aws_session_token").SetValue(creds.SessionToken)

126 126

section.Key("aws_security_token").SetValue(creds.SessionToken)

127 127 128 -

credFile, err := os.OpenFile(credFilePath, os.O_WRONLY, 0600)

128 +

credFile, err := os.OpenFile(credFilePath, os.O_WRONLY|os.O_TRUNC, 0600)

129 129

if err != nil {

130 130

return err

131 131

}

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4