(extfs_get_plugins): use is_exe().

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2021-05-16 14:27:58 +03:00
parent 07837de33b
commit 721048161c
1 changed files with 2 additions and 4 deletions

View File

@ -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;