fixed GH #1934: File::setExecutable() on POSIX should set executable bit for group and other if corresponding readable bit is set

This commit is contained in:
Guenter Obiltschnig
2017-10-31 22:16:19 +01:00
parent d1189787d6
commit 44c3e8f22b

View File

@@ -293,6 +293,10 @@ void FileImpl::setExecutableImpl(bool flag)
if (flag)
{
mode = st.st_mode | S_IXUSR;
if (st.st_mode & S_IRGRP)
mode |= S_IXGRP;
if (st.st_mode & S_IROTH)
mode |= S_IXOTH;
}
else
{