Fix x11 exported executables not getting the +x flag

This commit is contained in:
Marcelo Fernandez 2017-09-16 22:38:32 -03:00
parent 8be9e8b484
commit b48704c620
6 changed files with 38 additions and 0 deletions

View file

@ -236,6 +236,15 @@ uint64_t FileAccessUnix::_get_modified_time(const String &p_file) {
};
}
Error FileAccessUnix::_chmod(const String &p_path, int p_mod) {
int err = chmod(p_path.utf8().get_data(), p_mod);
if (!err) {
return OK;
}
return FAILED;
}
FileAccess *FileAccessUnix::create_libc() {
return memnew(FileAccessUnix);