From 11f338f74fffc94bf16cea834aafccda30bd1240 Mon Sep 17 00:00:00 2001 From: Jakob Unterwurzacher Date: Wed, 4 Dec 2024 18:55:21 +0100 Subject: passfile: drop byte counter from trailing garbage warning We don't know the exact value as we only read 2kiB. Relates-to: https://github.com/rfjakob/gocryptfs/discussions/882 --- internal/readpassword/passfile.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'internal/readpassword/passfile.go') diff --git a/internal/readpassword/passfile.go b/internal/readpassword/passfile.go index 60902b7..80bfdce 100644 --- a/internal/readpassword/passfile.go +++ b/internal/readpassword/passfile.go @@ -46,8 +46,7 @@ func readPassFile(passfile string) ([]byte, error) { return nil, fmt.Errorf("fatal: passfile: max password length (%d bytes) exceeded", maxPasswordLen) } if len(lines) > 1 && len(lines[1]) > 0 { - tlog.Warn.Printf("warning: passfile: ignoring trailing garbage (%d bytes) after first line", - len(lines[1])) + tlog.Warn.Printf("warning: passfile: ignoring trailing garbage after first line") } return lines[0], nil } -- cgit v1.2.3