chiark
/
gitweb
/
~mdw
/
distorted-keys
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6aef0cf
)
cryptop.recover: Delete the recovered nub if it doesn't look right.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 15 Jul 2017 17:16:37 +0000
(18:16 +0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 16 Jul 2017 01:12:33 +0000
(
02:12
+0100)
Don't just leave the half-finished thing lying about.
cryptop.recover
patch
|
blob
|
blame
|
history
diff --git
a/cryptop.recover
b/cryptop.recover
index c4b1e7f44b8c796653368598ebbf6b8655a9f9b8..f1fc9db8e6b3e2a7c50c48e57f0312029f4a97b2 100755
(executable)
--- a/
cryptop.recover
+++ b/
cryptop.recover
@@
-72,6
+72,7
@@
nubbin=$(nubid <$knub.new)
case "$nubbin" in
"$nubid") ;;
*)
+ rm -f $knub.new
echo >&2 "$quis: recovery produced incorrect nub"
exit 1
;;