This is getting to be a nuisance.
checkword "keeper set label" "$keeper"
## Check that this is a sensible thing to do.
checkword "keeper set label" "$keeper"
## Check that this is a sensible thing to do.
-kdir=$KEYS/keeper/$keeper
-if [ ! -f $kdir/meta ]; then
+keepdir=$KEYS/keeper/$keeper
+if [ ! -f $keepdir/meta ]; then
echo >&2 "$quis: unknown keeper set \`$keeper'"
exit 1
fi
echo >&2 "$quis: unknown keeper set \`$keeper'"
exit 1
fi
-if [ ! -l $KEYS/recov/$recov/current ]; then
+if [ ! -h $KEYS/recov/$recov/current ]; then
echo >&2 "$quis: unknown recovery key \`$recov'"
exit 1
fi
echo >&2 "$quis: unknown recovery key \`$recov'"
exit 1
fi
t=$(sharethresh $rdir/$keeper.param)
## Find out which keeper index it corresponds to.
t=$(sharethresh $rdir/$keeper.param)
## Find out which keeper index it corresponds to.
-read n hunoz <$kdir/meta
+read n hunoz <$keepdir/meta
+ c_sysprepare $keepdir/$i
nubbin=$(nubid <$tmp/secret)
nubbin=$(nubid <$tmp/secret)
- nubid=$(cat $kdir/$i/nubid)
- case "$nubbin" in "$nubid") foundp=t; break ;; esac
+ nubid=$(cat $keepdir/$i/nubid)
+ case "$nubbin" in "$nubid") foundnubp=t; break ;; esac
nil) echo >&2 "$quis: nub doesn't match keeper \`$keeper'"; exit 1 ;;
esac
nil) echo >&2 "$quis: nub doesn't match keeper \`$keeper'"; exit 1 ;;
esac
if [ -f $keeper.$i.share ]; then
echo >&2 "$quis: share $i already revealed"
else
if [ -f $keeper.$i.share ]; then
echo >&2 "$quis: share $i already revealed"
else
- c_sysdecrypt $kdir/$i $tmp/secret \
+ c_sysdecrypt $keepdir/$i $tmp/secret \
<$rdir/$keeper.$i.share \
>$keeper.$i.new
mv $keeper.$i.new $keeper.$i.share
<$rdir/$keeper.$i.share \
>$keeper.$i.new
mv $keeper.$i.new $keeper.$i.share