mirror of
https://github.com/EvernodeXRPL/sashimono.git
synced 2026-04-29 15:38:00 +00:00
Contract directory permission fix. (#42)
This commit is contained in:
committed by
GitHub
parent
8ba64058f8
commit
4ed4e45ef1
@@ -604,9 +604,9 @@ namespace hp
|
||||
len = 12 + (username.length() * 2) + contract_dir.length();
|
||||
char own_command[len];
|
||||
sprintf(own_command, CHOWN_DIR, username.data(), username.data(), contract_dir.data());
|
||||
if (system(own_command) != 0)
|
||||
if (system(own_command) != 0 || chmod(contract_dir.data(), util::DIR_PERMS) == -1)
|
||||
{
|
||||
LOG_ERROR << "Changing contract ownership failed " << contract_dir;
|
||||
LOG_ERROR << "Changing contract ownership and permissions failed " << contract_dir;
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user