generatepassword recipe: added missing O_TRUNC