Menu

#2 Fix getcwd() non-portability

closed
nobody
None
5
2007-02-06
2003-06-13
Anonymous
No

getcwd(NULL, 0) isn't portable, and resulted in some strange -C bugs on Solaris.
This switches it over to a fixed buffer of size MAXPATHLEN.

It also does some error checking.

This patch is also, hopefully, going into GCC's version of fastjar.

Discussion

  • Nobody/Anonymous

    Patch for getcwd() portability

     
  • Bryan Burns

    Bryan Burns - 2007-02-06
    • status: open --> closed
     

Log in to post a comment.