Jay Patterson
OpenView Consultant
E-Mail: Jay.Patterson@T-Mobile.com
Phone: 862-812-3436
-----Original Message-----
From: syslog-ng-bounces@lists.balabit.hu [mailto:syslog-ng-bounces@lists.balabit.hu]
Sent: Thursday, October 13, 2005 2:12 PM
To: syslog-ng@lists.balabit.hu
Subject: [syslog-ng] v1.6.8: usertty fails for usernames > 7 characterssyslog-ng-1.6.8 compiled with GCC 3.4.2 on Solaris 2.8
syslog-ng won't write to userttys for login names that are greater than 7 characters
Equivalent functionality on syslogd worksNever used getutent until today, but ...
After using getutent a little, I've come to the conclusion that the utmp fields are not null-terminated.Coincidently, ut_name has a size of 8
ut_user has a size of 32The code near source file "afuser.c", line 98, seems to treat the ut_name and ut_user fields as if they were null-terminated.
Jay Patterson
OpenView Consultant
E-Mail: Jay.Patterson@T-Mobile.com
Phone: 862-812-3436