Software /
code /
prosody
Diff
util/prosodyctl.lua @ 6356:fb1535328ac7
prosodyctl: Verify that 'pidfile' is a string, show friendly error otherwise
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 26 Aug 2014 12:00:51 +0200 |
parent | 5524:e9090966c803 |
child | 6367:769a3577dd85 |
line wrap: on
line diff
--- a/util/prosodyctl.lua Thu Jul 31 06:59:12 2014 +0100 +++ b/util/prosodyctl.lua Tue Aug 26 12:00:51 2014 +0200 @@ -188,6 +188,10 @@ if not pidfile then return false, "no-pidfile"; end + + if type(pidfile) ~= "string" then + return false, "invalid-pidfile"; + end local modules_enabled = set.new(config.get("*", "modules_enabled")); if not modules_enabled:contains("posix") then