Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
8559:d5d746e4c453 | 8560:489998717387 |
---|---|
866 data = input:read(2^11); | 866 data = input:read(2^11); |
867 end | 867 end |
868 assert(input:close()); | 868 assert(input:close()); |
869 assert(output:close()); | 869 assert(output:close()); |
870 if owner and group then | 870 if owner and group then |
871 local ok = os.execute(("chown %s.%s %s"):format(sh_esc(owner), sh_esc(group), sh_esc(to))); | 871 local ok = os.execute(("chown %s:%s %s"):format(sh_esc(owner), sh_esc(group), sh_esc(to))); |
872 assert(ok == true or ok == 0, "Failed to change ownership of "..to); | 872 assert(ok == true or ok == 0, "Failed to change ownership of "..to); |
873 end | 873 end |
874 if old_umask then pposix.umask(old_umask); end | 874 if old_umask then pposix.umask(old_umask); end |
875 return true; | 875 return true; |
876 end | 876 end |