Skip to content

Commit

Permalink
lxc: Use ParseUint with base and upper bound instead of ParseInt
Browse files Browse the repository at this point in the history
…in cmdFilePush run function

Signed-off-by: Kadin Sayani <[email protected]>
  • Loading branch information
kadinsayani committed Oct 7, 2024
1 parent 0ac9265 commit 9b0fb79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lxc/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ func (c *cmdFilePush) run(cmd *cobra.Command, args []string) error {
c.file.flagMode = "0" + c.file.flagMode
}

m, err := strconv.ParseInt(c.file.flagMode, 0, 0)
m, err := strconv.ParseUint(c.file.flagMode, 8, 32)
if err != nil {
return err
}
Expand Down

0 comments on commit 9b0fb79

Please sign in to comment.