This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/21822] New: fastjar/jartool.c's usage of MAXPATHLEN
- From: "ams at gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2005 15:03:27 -0000
- Subject: [Bug java/21822] New: fastjar/jartool.c's usage of MAXPATHLEN
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
The way MAXPATHLEN is used in jartool.c is wrong, instead of defining a bogus
value on platforms that do not have MAXPATHLEN defined (i.e. GNU) one should try
and use getcwd as follows:
char *dir = getcwd (NULL, 0);
instead of passing a buffer and a size.
This will only work on systems that use the GNU C Library.
--
Summary: fastjar/jartool.c's usage of MAXPATHLEN
Product: gcc
Version: 4.0.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: java
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ams at gnu dot org
CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
dot org
GCC build triplet: i686-pc-gnu0.3
GCC host triplet: i686-pc-gnu0.3
GCC target triplet: i686-pc-gnu0.3
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21822