You can't open busy text files, in this case to update the program headers. scanelf silently fails. This might lead the user to think the flags were updated when they were not: hard-sixtyfour ~ # scanelf -Xxz m /bin/bash #should warn here hard-sixtyfour ~ # scanelf -x /bin/bash TYPE PAX FILE ET_DYN ---xe- /bin/bash Reproducible: Always
http://sources.gentoo.org/gentoo-projects/pax-utils/scanelf.c?r1=1.244&r2=1.245