Lines 118-124
Link Here
|
118 |
# server man need it. Add them to the '$xserverauthfile' instead. |
118 |
# server man need it. Add them to the '$xserverauthfile' instead. |
119 |
for displayname in $authdisplay $hostname$authdisplay; do |
119 |
for displayname in $authdisplay $hostname$authdisplay; do |
120 |
authcookie=`xauth list "$displayname" \ |
120 |
authcookie=`xauth list "$displayname" \ |
121 |
| sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null; |
121 |
| grep XDM | sed -n "s/.*$displayname[[:space:]*].*[[:space:]*]//p"` 2>/dev/null; |
122 |
if [ "z${authcookie}" = "z" ] ; then |
122 |
if [ "z${authcookie}" = "z" ] ; then |
123 |
xauth -q << EOF |
123 |
xauth -q << EOF |
124 |
add $displayname . $mcookie |
124 |
add $displayname . $mcookie |