sysvinit: Regarding ipAddr printed by utmpdump

2011-02-09 Thread Navdeep Bhatia
Hi, The addr field of the output from utmpdump contains the ip address of the connection. This is obtained by calling inet_ntoa on the ut.ut_addr field (as depicted in the code below, utmpdump.c, Release 2.88). But in case the ip address is an IPV6 address, the output contains the wrong ip address

procps: Regarding FROM field in "w" command

2011-02-03 Thread Navdeep Bhatia
Hi, The "FROM" field in output of "w" command prints the value of the remote-host. But the output for this field can contain just 16 characters as depicted in the code snippet (taken from w.c, release 3.2.8) below. This truncates the value in case FROM field is an IPV6 address or a hostname. Is th