diff options
author | Kim Alvefur <zash@zash.se> | 2014-03-25 19:16:38 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-03-25 19:16:38 +0100 |
commit | f7d4b04bf17c8b634eae00e814a995a88c5ba6cb (patch) | |
tree | 1dd9879238a7c2f688f02d2b61ed2877da2e9989 /prosodyctl | |
parent | 03559cb06e7abb0245c2a73c75ad9a49297b48f6 (diff) | |
parent | aff3965927ff8763b477b97a4be4f477186738a0 (diff) | |
download | prosody-f7d4b04bf17c8b634eae00e814a995a88c5ba6cb.tar.gz prosody-f7d4b04bf17c8b634eae00e814a995a88c5ba6cb.zip |
Merge 0.9->0.10
Diffstat (limited to 'prosodyctl')
-rwxr-xr-x | prosodyctl | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -687,7 +687,12 @@ function cert_commands.config(arg) conf.distinguished_name[k] = nv ~= "." and nv or nil; end end - local conf_file = io.open(conf_filename, "w"); + local conf_file, err = io.open(conf_filename, "w"); + if not conf_file then + show_warning("Could not open OpenSSL config file for writing"); + show_warning(err); + os.exit(1); + end conf_file:write(conf:serialize()); conf_file:close(); print(""); |