[syslog-ng] v1.6.8: usertty fails for usernames > 7 characters

Patterson, Jay Jay.Patterson at T-Mobile.com
Thu Oct 13 20:11:31 CEST 2005


syslog-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 works

Never 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 32

The 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 at T-Mobile.com
Phone: 862-812-3436

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20051013/87cb2b19/attachment.html


More information about the syslog-ng mailing list