Changeset 78 in MondoRescue for trunk/mindi


Ignore:
Timestamp:
Oct 20, 2005, 2:45:28 PM (19 years ago)
Author:
andree
Message:

The output of ldd coming with libc6 2.3.4 and higher has changed and
breaks mindi's library inclusion code.

The change makes it so that the code in ProcessLDD() wroks for both
libc6 < 2.3.4 and >= 2.3.4.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mindi/mindi

    r40 r78  
    22612261    read incoming
    22622262    while [ "$incoming" != "" ] ; do
    2263     incoming=`echo "$incoming" | tr -s ' ' '\t'`
    2264     i=`echo "$incoming" | cut -f2`
    2265     if [ "$i" = "=>" ] ; then
    2266 # was cut -f1,3
    2267         for fname in `echo "$incoming" | cut -f1,3` ; do
    2268         fname=`LocateFile $fname`
    2269         for f in $fname ; do
    2270             [ -e "$f" ] && echo $f
    2271         done
    2272         done
    2273     fi
    2274     read incoming
     2263        incoming=`echo "$incoming" | sed '/[[:blank:]]*.*[[:blank:]]*=>[[:blank:]]*(.*/d ; s/[[:blank:]]*\(.*\)[[:blank:]]*=>[[:blank:]]*\/.*/\1/ ; s/[[:blank:]]*\(\/.*\)[[:blank:]]*(.*/\1/'`
     2264        for fname in `echo "$incoming"` ; do
     2265            fname=`LocateFile $fname`
     2266            for f in $fname ; do
     2267                [ -e "$f" ] && echo $f
     2268            done
     2269        done
     2270        read incoming
    22752271    done
    22762272}
Note: See TracChangeset for help on using the changeset viewer.