1 --- rpm-4.16.1.2/build/rpmfc.c~ 2021-01-24 09:43:15.000000000 +0100
2 +++ rpm-4.16.1.2/build/rpmfc.c 2021-02-19 09:14:46.031544586 +0100
4 size_t slen = strlen(s);
5 int fcolor = RPMFC_BLACK;
6 rpm_mode_t mode = (fmode ? fmode[ix] : 0);
7 - int is_executable = (mode & (S_IXUSR|S_IXGRP|S_IXOTH));
8 + int is_executable = ((mode & S_IFREG) && (mode & (S_IXUSR|S_IXGRP|S_IXOTH)));
10 switch (mode & S_IFMT) {
11 case S_IFCHR: ftype = "character special"; break;