As a follow up to /sbin/init corrupting, I fixed /sbin/init and my system booted up fine. It's stable, but various binaries were also corrupt.

Given that

  • I can fix an individual break just by reinstalling from pacman.
  • I know that if I run a corrupt program run from zsh, it will, straight away, say 'zsh: exec format error: foo'

Is there a reasonable way to run through every binary in my path (or a subset of it) to find out what's broken and fix it?

At first I was content to leave it, and fix programs on an ad-hoc basis, the corruption is not as easily detectable in programs that wrap the broken binaries, hence the motivation for sorting the whole thing out at once.

link|improve this question

feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.