#!/bin/sh

# libsafe: Load a specified program with the libsafe library.
# Date: Tue, 25 Dec 2001 15:32:59 +0200
# Author: Yotam Rubin <yotam@makif.omer.k12.il>
# Version: $Id: libsafe.sh,v 1.3 2003/06/05 03:51:06 david Exp $

# Modified 2002-January-4 by D. Coe to exit with $? rather than 0

LIBSAFE=/lib/libsafe.so.2

print_usage ()
{
    echo "Usage: $0 target_binary"
} 

if [ -z "$1" ]; then
    print_usage
    exit 1
fi

LD_PRELOAD=$LIBSAFE "$@"
exit $?
