Re: [PATCH] libutil: find: Define PATH_MAX for GNU/Hurd systems.
Shigio YAMAGUCHI <[email protected]>
| Newsgroups | gmane.comp.gnu.global.bugs |
|---|---|
| Message-ID | <CADJmJYoLXNTM1gOMxQkH=qxn8GvN-+n-NKFP4Vpr3NxRdEDGjg@mail.gmail.com> |
Hi > +/* MAX_PATH is not defined in some platforms, most notably GNU/Hurd. > + In that case we define it here to some constant. */ Since PATH_MAX is buffer size that realpath(3) assumes, setting a wrong size would destroy memory. How can we know correct size? 2016-06-20 1:08 GMT+09:00 Manolis Ragkousis <[email protected]>: > Hello everyone, > > On GNU/Hurd systems PATH_MAX is not defined and as a result the latest > version of Global cannot be built for them. > > This patch is a workaround for this. Defining to 200 was an arbitrary > choice from my part. > > Thank you, > Manolis > > _______________________________________________ > Bug-global mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/bug-global > > -- Shigio YAMAGUCHI <[email protected]> PGP fingerprint: D1CB 0B89 B346 4AB6 5663 C4B6 3CA5 BBB3 57BE DDA3 _______________________________________________ Bug-global mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-global