summaryrefslogtreecommitdiff
path: root/cmd/goaes/commands/decrypt.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/goaes/commands/decrypt.go')
-rw-r--r--cmd/goaes/commands/decrypt.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/goaes/commands/decrypt.go b/cmd/goaes/commands/decrypt.go
index dc87b58..1ebf85c 100644
--- a/cmd/goaes/commands/decrypt.go
+++ b/cmd/goaes/commands/decrypt.go
@@ -51,6 +51,7 @@ func Decrypt(ctx context.Context, cmd *cli.Command) error {
return err
}
+ destination = filepath.Clean(destination)
err = os.WriteFile(destination, plaintext, fileMode)
if err != nil {
return err