- don't treat symlinks as executables when classyfying files for dependency extraction
[packages/rpm.git] / skip-symlinks.patch
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
3 @@ -1231,7 +1231,7 @@
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)));
9  
10         switch (mode & S_IFMT) {
11         case S_IFCHR:   ftype = "character special";    break;
This page took 0.373554 seconds and 3 git commands to generate.