diff options
author | Jakob Unterwurzacher | 2024-12-04 19:09:22 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2024-12-04 19:12:22 +0100 |
commit | d5bd98eb3f4cbfb8dd9d0b2eb64dbff69c3c88b1 (patch) | |
tree | 77357f25d843d05674b77bab84fde4b5b0e23dd7 | |
parent | 634a450d781d3430bb63362ee75cfa1d9a840f6f (diff) |
gocryptfs -passwd: ignore -extpass and -passfile for new password
Using the same "-extpass" or "-passfile" for both old
and new password makes little sense, and it causes real
problems as seen here: https://github.com/rfjakob/gocryptfs/discussions/882
I hope nobody depends on this or I'll have to revert.
Fixes https://github.com/rfjakob/gocryptfs/issues/287
Fixes https://github.com/rfjakob/gocryptfs/discussions/882
-rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |