From 4754d0463140db294f3188b3ec7a6c0945e91b51 Mon Sep 17 00:00:00 2001 From: David Bremner Date: Sun, 10 Sep 2023 22:00:56 -0300 Subject: GNUPG:SECRET-KEY-IMPORTED: call gpg with --batch Without these arguments, gpg will fail with a message about inappropriate ioctl for device. This is similar to the issue discussed at . Add the --batch argument to keep gpg from trying to interact with the tty. According to the docs --no-tty is only about restricting output. Signed-off-by: David Bremner --- src/property/gnupg.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/property/gnupg.lisp b/src/property/gnupg.lisp index 428c794..6fb8ddd 100644 --- a/src/property/gnupg.lisp +++ b/src/property/gnupg.lisp @@ -63,4 +63,4 @@ integer." (declare (ignore err)) (and (zerop exit) (re:scan #?/^sec\s/ out)))) (:apply (mrun :input (get-data-stream "--pgp-seckey" fingerprint) - "gpg" "--import"))) + "gpg" "--batch" "--no-tty" "--import"))) -- cgit v1.2.3