--- ./pym/gentoolkit/eclean/search.py.org 2020-04-24 10:22:57.685247466 +0200 +++ ./pym/gentoolkit/eclean/search.py 2020-04-24 10:29:12.476149003 +0200 @@ -200,7 +200,8 @@ def _isreg_check_(file_stat, file): """check if file is a regular file.""" is_reg_file = stat.S_ISREG(file_stat[stat.ST_MODE]) - return not is_reg_file, is_reg_file + is_lnk_file = stat.S_ISLNK(file_stat[stat.ST_MODE]) + return not (is_reg_file or is_lnk_file), is_reg_file or is_lnk_file @staticmethod def _size_check_(size_limit, file_stat, file):