aboutsummaryrefslogtreecommitdiffstats
path: root/prosodyctl
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-03-02 01:51:06 +0100
committerKim Alvefur <zash@zash.se>2018-03-02 01:51:06 +0100
commitbde433b14c7b4880a4325ba27ef1e2dfafada426 (patch)
tree133fe8d98a69df9d7b05e4df03ac91ba274a8368 /prosodyctl
parent65752fde14f426eaf4a7f92e85badd93b78a4cfb (diff)
downloadprosody-bde433b14c7b4880a4325ba27ef1e2dfafada426.tar.gz
prosody-bde433b14c7b4880a4325ba27ef1e2dfafada426.zip
prosodyctl: Use correct separator in chown call (fixes #1093)
Diffstat (limited to 'prosodyctl')
-rwxr-xr-xprosodyctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/prosodyctl b/prosodyctl
index c4f51f35..fcfc4c2e 100755
--- a/prosodyctl
+++ b/prosodyctl
@@ -868,7 +868,7 @@ local function copy(from, to, umask, owner, group)
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