Skip to content

Commit

Permalink
gocryptfs -passwd: ignore -extpass and -passfile for new password
Browse files Browse the repository at this point in the history
Using the same "-extpass" or "-passfile" for both old
and new password makes little sense, and it causes real
problems as seen here: #882

I hope nobody depends on this or I'll have to revert.

Fixes #287
Fixes #882
  • Loading branch information
rfjakob committed Dec 4, 2024
1 parent 634a450 commit d5bd98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func changePassword(args *argContainer) {
os.Exit(exitcodes.Usage)
}
tlog.Info.Println("Please enter your new password.")
newPw, err := readpassword.Twice(args.extpass, args.passfile)
newPw, err := readpassword.Twice(nil, nil)
if err != nil {
tlog.Fatal.Println(err)
os.Exit(exitcodes.ReadPassword)
Expand Down

0 comments on commit d5bd98e

Please sign in to comment.