From 721048161c429da0306126ef80051ceffa636a4f Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Sun, 16 May 2021 14:27:58 +0300 Subject: [PATCH] (extfs_get_plugins): use is_exe(). Signed-off-by: Andrew Borodin --- src/vfs/extfs/extfs.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/vfs/extfs/extfs.c b/src/vfs/extfs/extfs.c index d8cd95591..84c8df743 100644 --- a/src/vfs/extfs/extfs.c +++ b/src/vfs/extfs/extfs.c @@ -1566,10 +1566,8 @@ extfs_get_plugins (const char *where, gboolean silent) g_snprintf (fullname, sizeof (fullname), "%s" PATH_SEP_STR "%s", dirname, filename); - if ((stat (fullname, &s) == 0) - && S_ISREG (s.st_mode) && !S_ISDIR (s.st_mode) - && (((s.st_mode & S_IXOTH) != 0) || - ((s.st_mode & S_IXUSR) != 0) || ((s.st_mode & S_IXGRP) != 0))) + if ((stat (fullname, &s) == 0) && S_ISREG (s.st_mode) && !S_ISDIR (s.st_mode) + && is_exe (s.st_mode)) { int f;