X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-keys/blobdiff_plain/e9cf707985f070cf5992f1bb112df58e532e01ca..0bc47568f2c94d6e48bc389ac508d5f905daa9c7:/cryptop.recover diff --git a/cryptop.recover b/cryptop.recover index 26142e9..c4b1e7f 100755 --- a/cryptop.recover +++ b/cryptop.recover @@ -28,15 +28,24 @@ case "${KEYSLIB+t}" in t) ;; *) echo >&2 "$0: KEYSLIB unset"; exit 1 ;; esac . "$KEYSLIB"/keyfunc.sh defhelp <&2 "$quis: unknown key \`$key'"; exit 1; fi +checkword "recovery instance" "$inst" checkword "recovery key label" "$recov" case $kowner in $USERV_USER) ;; @@ -58,7 +67,7 @@ if [ -f $knub ]; then fi umask 077 -recover $recov $kowner/$klabel >$knub.new +recover $recov $inst $kowner/$klabel >$knub.new nubbin=$(nubid <$knub.new) case "$nubbin" in "$nubid") ;;