On Sat, Oct 22, 2011 at 7:33 AM, Nicholas Marriott
<nicholas.marri...@gmail.com> wrote:
> It's not a DoS. The user can still use -S to put the socket wherever
> they like temporarily until they can get the sysadmin to apply his LART
> to you.

Right.

> Generating a random name wouldn't work because then how do you figure it
> out when you want to reattach.

Okay, I've worked around this sufficiently by doing this:

        for i in /dev/shm/$PKG-$USER-*; do
                if [ -d "$i" ] && [ -O "$i" ]; then
                        export BYOBU_RUN_DIR="$i"
                        break
                fi
        done
        if [ ! -d "$BYOBU_RUN_DIR" ] || [ ! -O "$BYOBU_RUN_DIR" ]; then
                export BYOBU_RUN_DIR=$(mktemp -d /dev/shm/$PKG-$USER-XXXXXXXX)
        fi

My requirements are a bit different than yours, though, and this is
enough for my needs.  Thanks!

-- 
:-Dustin

Dustin Kirkland
Ubuntu Core Developer

------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to