source: MondoRescue/branches/3.2/mindi-busybox/shell/hush_leaktool.sh@ 3186

Last change on this file since 3186 was 2725, checked in by Bruno Cornec, 13 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • Property svn:eol-style set to native
  • Property svn:executable set to *
File size: 566 bytes
Line 
1#!/bin/sh
2
3# hush's stderr with leak debug enabled
4output=output
5
6freelist=`grep 'free 0x' "$output" | cut -d' ' -f2 | sort | uniq | xargs`
7
8grep -v free "$output" >"$output.leaked"
9
10i=8
11list=
12for freed in $freelist; do
13 list="$list -e $freed"
14 test $((--i)) != 0 && continue
15 echo Dropping $list
16 grep -F -v $list <"$output.leaked" >"$output.temp"
17 mv "$output.temp" "$output.leaked"
18 i=8
19 list=
20done
21if test "$list"; then
22 echo Dropping $list
23 grep -F -v $list <"$output.leaked" >"$output.temp"
24 mv "$output.temp" "$output.leaked"
25fi
Note: See TracBrowser for help on using the repository browser.