mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-30 21:50:47 +01:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user