source: MondoRescue/branches/2.2.9/mindi-busybox/scripts/find_bad_common_bufsiz@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
  • Property svn:executable set to *
File size: 331 bytes
Line 
1#!/bin/sh
2
3# This script finds applets with multiple uses of bb_common_bufsiz1
4# (== possible bugs).
5# Currently (2007-06-04) reports 3 false positives:
6# ./coreutils/diff.c:7
7# ./loginutils/getty.c:2
8# ./util-linux/mount.c:5
9
10find -name '*.c' \
11| while read name; do
12 grep -Hc bb_common_bufsiz1 "$name"
13done | grep -v ':[01]$'
Note: See TracBrowser for help on using the repository browser.