This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1499] syslog.c:openlog_internal cuts _PATH_LOG
- From: "andi5 dot py at gmx dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 18 Oct 2005 22:26:23 -0000
- Subject: [Bug libc/1499] syslog.c:openlog_internal cuts _PATH_LOG
- References: <20051018222332.1499.andi5.py@gmx.net>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From andi5 dot py at gmx dot net 2005-10-18 22:26 -------
I am sorry for reposting, but I did not plan it that way:
Glibc 2.3.5
( GCC 3.4.4, BinUtils 2.16.1, Linux 2.6.13.2 )
After changing misc/sys/syslog.h _PATH_LOG to something different,
sysdeps/generic/syslog.c:openlog_internal starts cutting this path
to 14 bytes while copying to a sockaddr, maybe because it thinks it
knows the variable.
I do not know the correct solution to this, at least I did not find
documentation that clearly states that this macro is fixed or has a
maximal length. But I guess allocating enough memory for it should
not destabilize glibc.
PS: If this is wontfix or similar, i would still like to see some
patch for it :)
--
http://sourceware.org/bugzilla/show_bug.cgi?id=1499
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.