Changeset

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 (2018-03-02)
parents 8559:d5d746e4c453
children 8561:7b9ffddc4276 8575:5040c8ce32dd
files prosodyctl
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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