aboutsummaryrefslogtreecommitdiff
path: root/internal/readpassword
diff options
context:
space:
mode:
authorJakob Unterwurzacher2024-12-04 18:55:21 +0100
committerJakob Unterwurzacher2024-12-04 19:06:56 +0100
commit11f338f74fffc94bf16cea834aafccda30bd1240 (patch)
tree951ac68c70620bbfa5892411b562afc3e17311ed /internal/readpassword
parent86891054ef2a5d1b0b59c7c140aae284e7c5bd87 (diff)
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
Diffstat (limited to 'internal/readpassword')
-rw-r--r--internal/readpassword/passfile.go3
1 files changed, 1 insertions, 2 deletions
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
}