public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug java/21822] New: fastjar/jartool.c's usage of MAXPATHLEN
@ 2005-05-30 15:03 ams at gnu dot org
  2005-05-30 15:05 ` [Bug libgcj/21822] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: ams at gnu dot org @ 2005-05-30 15:03 UTC (permalink / raw)
  To: java-prs

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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-06-19 14:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-30 15:03 [Bug java/21822] New: fastjar/jartool.c's usage of MAXPATHLEN ams at gnu dot org
2005-05-30 15:05 ` [Bug libgcj/21822] " pinskia at gcc dot gnu dot org
2005-05-30 15:10 ` [Bug fastjar/21822] " pinskia at gcc dot gnu dot org
2005-05-30 15:14 ` pinskia at gcc dot gnu dot org
2005-05-30 17:03 ` joseph at codesourcery dot com
2005-06-19 14:01 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).