Software /
code /
prosody
Diff
prosodyctl @ 6039:f8df0a996575
Merge 0.10->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 25 Mar 2014 19:18:32 +0100 |
parent | 6038:b3ceb7627e27 |
child | 6062:6cc6b4d407df |
line wrap: on
line diff
--- a/prosodyctl Sun Mar 09 23:48:32 2014 +0100 +++ b/prosodyctl Tue Mar 25 19:18:32 2014 +0100 @@ -687,7 +687,12 @@ 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("");