diff options
author | Kim Alvefur <zash@zash.se> | 2014-03-25 19:18:32 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-03-25 19:18:32 +0100 |
commit | c98c0fb432db6ce9c7bbcd433168aa27b36854b8 (patch) | |
tree | 652efec3423f31c2562f4eab50e0bd3d48bf884c /prosodyctl | |
parent | 7ac11ee4c7a1f7a02e9876d1ab08669d12ec53b0 (diff) | |
parent | 8c0d996be4f47b77a02668474d3d8a0a41bd0f98 (diff) | |
download | prosody-c98c0fb432db6ce9c7bbcd433168aa27b36854b8.tar.gz prosody-c98c0fb432db6ce9c7bbcd433168aa27b36854b8.zip |
Merge 0.10->trunk
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(""); |