Subject: Strange behaviour from xdm and getlogin()
To: None <netbsd-help@NetBSD.ORG>
From: Glen Pill <rxxgep@alzarius.xx.rmit.edu.au>
List: netbsd-help
Date: 09/12/1995 23:04:40
Recently i've become annoyed by a strange behaviour whilst running xdm and
serving a remote X terminal.  I'm running NetBSD-current, XFree86-3.1.1 but
have noticed this behaviour since NetBSD-0.8 and XFree-godknowswhat.  It seems
that getlogin() is returning the last login via xdm, not the current login.

Typical example that happened just today:

. user1 logs in via a remote X terminal

. user2 logs in via the console

. user1 types 'write user2'

. user2 sees 'Message from user2@somemachine.somedomain on ttypX' 

Is there any simple fix to this problem?  Perhaps an xdm configuration?


Thanks,

Glen.


--
Glen Pill                            Internet : glenp@rmit.edu.au
Tech. Officer                        Snail    : 124 LaTrobe St, Melb. Oz. 3000
Network Services                     Phone    : +61 3 660 2538 
RMIT Computer Centre                 Fax      : +61 3 663 5652