X-Git-Url: https://git.distorted.org.uk/~mdw/distorted-keys/blobdiff_plain/1d0c984e332f288dd3db8f67831dcf662c3e9b1b..f93aa26608c5fee11e7297608f6f125404f840e8:/keyfunc.sh.in diff --git a/keyfunc.sh.in b/keyfunc.sh.in index 704122b..dca8dee 100644 --- a/keyfunc.sh.in +++ b/keyfunc.sh.in @@ -425,19 +425,20 @@ c_genkey () { ## options to the key type. ## Set options and check them. + kopt_owner=$kowner kopt_label=$klabel setprops "option" kopt_ "$@" checkprops "option" kopt_ "$k_genopts" ## Create directory structure and start writing metadata. rm -rf "$kdir.new" mkdir -m755 -p "$kdir.new" - case "$knub" in */*) mkdir -m700 -p "${knub%/*}" ;; esac + case "$knub" in */*) mkdir -m755 -p "${knub%/*}" ;; esac cat >"$kdir.new/meta" <"$knub.new"; umask $umask + (umask 077; makenub >"$knub.new") k_generate "$kdir.new" "$knub.new" $hook "$kdir.new" "$knub.new" @@ -726,6 +727,7 @@ $cmds EOF case $foundp in t) + usage; echo eval help=\$help_$cmdname; echo "$help" ;; nil)