|
|
# Remove the old cookies. They may cause trouble if we transfer only one | # Remove the old cookies. They may cause trouble if we transfer only one |
# cookie, e.g. an MIT cookie, and there's still a stale XDM cookie hanging | # cookie, e.g. an MIT cookie, and there's still a stale XDM cookie hanging |
# around. | # around. |
export TERM="/usr/X11R6/bin/xauth -q remove $DISPLAY 2>/dev/null;" |
export TERM="/usr/bin/xauth -q remove $DISPLAY 2>/dev/null;" |
if [ -n "$sux_unix_display" ] | if [ -n "$sux_unix_display" ] |
then | then |
TERM="$TERM /usr/X11R6/bin/xauth -q remove $sux_unix_display;" |
TERM="$TERM /usr/bin/xauth -q remove $sux_unix_display;" |
fi | fi |
| |
# Note that there may be more than one cookie to transfer, hence | # Note that there may be more than one cookie to transfer, hence |
|
|
sux_i=`expr $sux_i + 1` | sux_i=`expr $sux_i + 1` |
if [ $sux_i -eq 9 ] | if [ $sux_i -eq 9 ] |
then | then |
TERM="$TERM | /usr/X11R6/bin/xauth nmerge - ;" |
TERM="$TERM | /usr/bin/xauth nmerge - ;" |
sux_i=0 | sux_i=0 |
fi | fi |
done | done |