On Mon, Jan 31, 2011 at 09:02:24AM -0300, Davidlohr Bueso wrote: > On Sun, 2011-01-30 at 01:25 +0100, Samuel Thibault wrote: > > Here is a few fixes for non-Linux builds (Hurd builds, in particular). > > > > Signed-off-by: Samuel Thibault <samuel.thibault@xxxxxxxxxxxx> > > > > diff --git a/fsck/fsck.c b/fsck/fsck.c > > index 87f8210..e8f433e 100644 > > --- a/fsck/fsck.c > > +++ b/fsck/fsck.c > > @@ -233,7 +233,7 @@ static dev_t get_disk(const char *device) > > > > static int is_irrotational_disk(dev_t disk) > > { > > - char path[PATH_MAX]; > > + char path[33+2*11+1]; > > FILE *f; > > int rc, x; > > > > @@ -1034,7 +1034,7 @@ static int count_slaves(dev_t disk) > > { > > DIR *dir; > > struct dirent *dp; > > - char dirname[PATH_MAX]; > > + char dirname[24+2*11+1]; > > That's just plain ugly Yes > does Hurd not have it? why not redefine > PATH_MAX? already in c.h Karel -- Karel Zak <kzak@xxxxxxxxxx> http://karelzak.blogspot.com -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html