cryptop.recover: Delete the recovered nub if it doesn't look right.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 15 Jul 2017 17:16:37 +0000 (18:16 +0100)
committerMark 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

index c4b1e7f..f1fc9db 100755 (executable)
@@ -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
     ;;