find_bad_common_bufsiz 331 B

12345678910111213
  1. #!/bin/sh
  2. # This script finds applets with multiple uses of bb_common_bufsiz1
  3. # (== possible bugs).
  4. # Currently (2007-06-04) reports 3 false positives:
  5. # ./coreutils/diff.c:7
  6. # ./loginutils/getty.c:2
  7. # ./util-linux/mount.c:5
  8. find -name '*.c' \
  9. | while read name; do
  10. grep -Hc bb_common_bufsiz1 "$name"
  11. done | grep -v ':[01]$'