[gnome-commander] Use G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE for checking if the user can execute a file
- From: Uwe Scholz <uwescholz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] Use G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE for checking if the user can execute a file
- Date: Sun, 11 Jul 2021 21:45:32 +0000 (UTC)
commit 098b0ece4d787aeb99eec76547a5b9a8f153ed51
Author: Uwe Scholz <u scholz83 gmx de>
Date: Sat Jul 10 22:04:47 2021 +0200
Use G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE for checking if the user can execute a file
src/gnome-cmd-file.cc | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-file.cc b/src/gnome-cmd-file.cc
index 91e177fe..900df199 100644
--- a/src/gnome-cmd-file.cc
+++ b/src/gnome-cmd-file.cc
@@ -1028,8 +1028,7 @@ gboolean GnomeCmdFile::is_executable()
if (!is_local())
return FALSE;
- if (gcmd_owner.uid() == GetGfileAttributeUInt32(G_FILE_ATTRIBUTE_UNIX_UID)
- && GetGfileAttributeUInt32(G_FILE_ATTRIBUTE_UNIX_MODE) &
GNOME_CMD_PERM_USER_EXEC)
+ if (GetGfileAttributeBoolean(G_FILE_ATTRIBUTE_ACCESS_CAN_EXECUTE))
return TRUE;
if (gcmd_owner.gid() == GetGfileAttributeUInt32(G_FILE_ATTRIBUTE_UNIX_GID)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]