Changeset 2803 in MondoRescue


Ignore:
Timestamp:
Apr 29, 2011, 3:38:54 PM (13 years ago)
Author:
Bruno Cornec
Message:

r2175@localhost (orig r2174): bruno | 2009-04-17 19:14:00 +0200

  • ReadAllLink now normalize paths with .. in their name to remove that (avoid bugs when dyn. lib. links contain them such as on OEL4)


Location:
branches/2.2.8/mindi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.8/mindi/mindi

    r2799 r2803  
    823823    file="$1"
    824824
     825    echo $file | grep -q '\.\./'
     826    if [ $? -ne 0 ]; then
     827        # We need to normalise the path with .. in it
     828        file=`echo $file | perl -pi -e 's|([^/]+)/([^/]+)/\.\./([^/]+)|$1/$3|'`
     829    fi
    825830    echo "$file"
    826831    if [ ! -h $file ]; then
  • branches/2.2.8/mindi/rootfs/sbin/init

    r2793 r2803  
    3131    echo -en "Copying boot device to $outfile..."
    3232    if [ -e "$outfile" ] ; then
    33         echo "OK."
     33        echo "not needed."
    3434        return 0
    3535    fi
Note: See TracChangeset for help on using the changeset viewer.