summaryrefslogtreecommitdiff
path: root/internal/fido2
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-06-03 22:01:04 +0200
committerJakob Unterwurzacher2021-06-03 22:03:21 +0200
commit015cd066e1a857efd3d820a1ac29b89829ac72ed (patch)
treef8950dced7ec9b7227c3bfbcb30e9fda2affd05a /internal/fido2
parent8f2be5d93cda2696fce7bc1a3f8a888a19321f09 (diff)
fido2: quote argument strings in debug output
Tested using gocryptfs -init -debug -fido2 "hello world" cipherdir Output before: callFidoCommand: executing "/usr/bin/fido2-cred" with args [fido2-cred -M -h -v hello world] After: callFidoCommand: executing "/usr/bin/fido2-cred" with args ["fido2-cred" "-M" "-h" "-v" "hello world"] Related: https://github.com/rfjakob/gocryptfs/issues/571
Diffstat (limited to 'internal/fido2')
-rw-r--r--internal/fido2/fido2.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/fido2/fido2.go b/internal/fido2/fido2.go
index ea8ffd8..cd63483 100644
--- a/internal/fido2/fido2.go
+++ b/internal/fido2/fido2.go
@@ -34,7 +34,7 @@ func callFidoCommand(command fidoCommand, device string, stdin []string) ([]stri
case assertWithPIN:
cmd = exec.Command("fido2-assert", "-G", "-h", "-v", device)
}
- tlog.Debug.Printf("callFidoCommand: executing %q with args %v", cmd.Path, cmd.Args)
+ tlog.Debug.Printf("callFidoCommand: executing %q with args %q", cmd.Path, cmd.Args)
cmd.Stderr = os.Stderr
in, err := cmd.StdinPipe()
if err != nil {