aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2022-10-20 17:37:33 +0200
committerKim Alvefur <zash@zash.se>2022-10-20 17:37:33 +0200
commit03814250c300b8cbaaccfde6bdb856039c3a4691 (patch)
treea6e907ce21dff953354a0cbf546a00179f4e4ab5 /util
parente673312b7f9142c0f8d50daf8de11eb398d5e1e9 (diff)
downloadprosody-03814250c300b8cbaaccfde6bdb856039c3a4691.tar.gz
prosody-03814250c300b8cbaaccfde6bdb856039c3a4691.zip
util.prosodyctl.cert: Remove Lua 5.1 os.execute() return value compat
Diffstat (limited to 'util')
-rw-r--r--util/prosodyctl/cert.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/prosodyctl/cert.lua b/util/prosodyctl/cert.lua
index 02c81585..ebc14a4e 100644
--- a/util/prosodyctl/cert.lua
+++ b/util/prosodyctl/cert.lua
@@ -179,7 +179,7 @@ local function copy(from, to, umask, owner, group)
os.execute(("chown -c --reference=%s %s"):format(sh_esc(cert_basedir), sh_esc(to)));
elseif owner and group then
local ok = os.execute(("chown %s:%s %s"):format(sh_esc(owner), sh_esc(group), sh_esc(to)));
- assert(ok == true or ok == 0, "Failed to change ownership of "..to);
+ assert(ok, "Failed to change ownership of "..to);
end
if old_umask then pposix.umask(old_umask); end
return true;