aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-03-25 19:16:38 +0100
committerKim Alvefur <zash@zash.se>2014-03-25 19:16:38 +0100
commit8c0d996be4f47b77a02668474d3d8a0a41bd0f98 (patch)
tree1dd9879238a7c2f688f02d2b61ed2877da2e9989 /prosodyctl
parent18f7ffec151b965af2745600f272db50a1c92ad2 (diff)
parente4ea0b094a43dd93fab253dff36efbe8aa3dc330 (diff)
downloadprosody-8c0d996be4f47b77a02668474d3d8a0a41bd0f98.tar.gz
prosody-8c0d996be4f47b77a02668474d3d8a0a41bd0f98.zip
Merge 0.9->0.10
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl7
1 files changed, 6 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index cf2ab74d..c3adad4d 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -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("");