#!/bin/sh
#
# ARGH! How annoying. /mit/sipbnet/arch/sun4x_55/bin/pathchar is a 2.5.1
# binary, and expects bzero() to be in one of the shared libraries. Of course
# under 2.4 it lives in libucb.so, which pathchar isn't linked against.
# Simply setting LD_PRELOAD is not sufficient, of course, since pathchar
# is a setuid executable and that is ignored.
#
# This script needs to be rewritten in C, and made setuid, it should:
#   Unset most LD_* variables
#   Set LD_PRELOAD appropriately
#   execv() pathchar
#
# Needless to say getting that right may be a big pain in the neck.
#
LD_PRELOAD=/usr/lib/libucb.so; export LD_PRELOAD
exec /afs/sipb/project/sipbnet/arch/sun4x_55/bin/pathchar "$@"
