chiark / gitweb /
keyfunc.sh.in, ktype.*: Make nub creation the job of `c_genkey'.
[distorted-keys] / keyfunc.sh.in
index f257bb93bc65545ae40e1800f6b8954dbfc1151c..c8a60738c5970c92cbd61a605eb8bf1521550f2f 100644 (file)
@@ -437,7 +437,7 @@ $profile
 EOF
 
   ## Generate the key.
 EOF
 
   ## Generate the key.
-  umask=$(umask); umask 077; >"$knub.new"; umask $umask
+  (umask 077; makenub >"$knub.new")
   k_generate "$kdir.new" "$knub.new"
   $hook "$kdir.new" "$knub.new"
 
   k_generate "$kdir.new" "$knub.new"
   $hook "$kdir.new" "$knub.new"