Diff

prosodyctl @ 8560:489998717387

prosodyctl: Use correct separator in chown call (fixes #1093)
author Kim Alvefur <zash@zash.se>
date Fri, 02 Mar 2018 01:51:06 +0100
parent 8419:57610304e30d
child 8561:7b9ffddc4276
child 8881:a0de4fc4acd5
line wrap: on
line diff
--- a/prosodyctl	Sat Feb 24 19:40:18 2018 +0100
+++ b/prosodyctl	Fri Mar 02 01:51:06 2018 +0100
@@ -868,7 +868,7 @@
 	assert(input:close());
 	assert(output:close());
 	if owner and group then
-		local ok = os.execute(("chown %s.%s %s"):format(sh_esc(owner), sh_esc(group), sh_esc(to)));
+		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);
 	end
 	if old_umask then pposix.umask(old_umask); end