mirror of
https://github.com/RGBCube/serenity
synced 2025-05-21 13:05:06 +00:00
LibGUI+FileManager: Try better to detect executables
We will now consider a file to be an executable if any of the executable permission bits are set.
This commit is contained in:
parent
f983dfe319
commit
f9b4d981a8
3 changed files with 5 additions and 4 deletions
|
@ -73,7 +73,7 @@ public:
|
|||
|
||||
mutable RefPtr<GraphicsBitmap> thumbnail;
|
||||
bool is_directory() const { return S_ISDIR(mode); }
|
||||
bool is_executable() const { return mode & S_IXUSR; }
|
||||
bool is_executable() const { return mode & (S_IXUSR | S_IXGRP | S_IXOTH); }
|
||||
|
||||
String full_path(const GFileSystemModel&) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue