From d5bd98eb3f4cbfb8dd9d0b2eb64dbff69c3c88b1 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 4 Dec 2024 19:09:22 +0100 Subject: 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 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3