Description of problem: 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 there any specific reason that this is limited to 16 chars only? /* This routine is careful since some programs leave utmp strings * unprintable. Always outputs at least 16 chars padded with spaces * on the right if necessary. */ static void print_host(const char *restrict host, int len) { const char *last; int width = 0; /* FIXME: there should really be a way to configure this... */ /* for now, we'll just limit it to the 16 that the libc5 version * of utmp uses. */ if (len > 16) len = 16; last = host + len; for ( ; host < last ; host++){ if (isprint(*host) && *host != ' ') { fputc(*host, stdout); ++width; } else { break; } } // space-fill, and a '-' too if needed to ensure the column exists if(width < 16) fputs("- "+width, stdout); } This has recently been fixed for debian in procps-3.2.8-2 but is still not available as part of fedora. Thanks. Regards, Navdeep Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
procps-3.2.8-19.20110302git.fc15 has been submitted as an update for Fedora 15. https://admin.fedoraproject.org/updates/procps-3.2.8-19.20110302git.fc15
Thank you for the bug report. I have modified Debian patch and it is available in update for Fedora 15 and Rawhide. The length of FROM field is changeable via environment variable PROCPS_FROMLEN now. I prefer to add this patch only to Fedora 15 and above.
Package procps-3.2.8-19.20110302git.fc15: * should fix your issue, * was pushed to the Fedora 15 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing procps-3.2.8-19.20110302git.fc15' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/procps-3.2.8-19.20110302git.fc15 then log in and leave karma (feedback).
procps-3.2.8-19.20110302git.fc15 has been pushed to the Fedora 15 stable repository. If problems still persist, please make note of it in this bug report.