mirror of https://github.com/MidnightCommander/mc
(extfs_get_plugins): use is_exe().
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
07837de33b
commit
721048161c
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue