[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Wp8 and Debian 2.1



> In addition to that you need a wrapper that rearranges the library path,
> this is the one I use

i've attached a better one which was posted by someone on bugtraq.  it also
solves a couple security issues which are particularly an issue if you're
using wp on a multiuser system.

make sure you set the paths correctly a the bottom of the script.

adam.

#!/bin/bash

# Set $TMPDIR to ~/tmp if the user doesn't already have a TMPDIR variable
if [ "${TMPDIR}" = "" ]; then
    TMPDIR=${HOME}/tmp
    export TMPDIR
fi

if [ ! -d "${TMPDIR}" ]; then
    # Need to make a new directory
    TMPDIR_TEST="error"
    /bin/mkdir "${TMPDIR}" && TMPDIR_TEST="ok"
    if [ ${TMPDIR_TEST} != "ok" ]; then
        echo "Unable to create safe tmp directory ${TMPDIR}"
        exit 1
    fi
    /bin/chmod o= "${TMPDIR}"
fi

# Clear LD_LIBRARY_PATH to prevent reported seg faults
LD_LIBRARY_PATH="" 
export LD_LIBRARY_PATH

# Set the PATH and exec the app, passing any command-line args
PATH=${PATH}:/usr/local/wp8/wpbin 
export PATH

exec /usr/local/wp8/wpbin/xwp "${@-}" &

Reply to: