aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Unterwurzacher2024-12-04 19:09:22 +0100
committerJakob Unterwurzacher2024-12-04 19:12:22 +0100
commitd5bd98eb3f4cbfb8dd9d0b2eb64dbff69c3c88b1 (patch)
tree77357f25d843d05674b77bab84fde4b5b0e23dd7
parent634a450d781d3430bb63362ee75cfa1d9a840f6f (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.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 469f5a0..cd643b5 100644
--- a/main.go
+++ b/main.go
@@ -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)