Bug spotted by Kumar Gala. Hopefully this fixes it...

This commit is contained in:
Rob Landley 2006-04-01 17:32:52 +00:00
parent 07a637df47
commit 20fef96dd8

View File

@ -475,8 +475,9 @@ int mount_main(int argc, char **argv)
// Get next fstab entry
if (!getmntent_r(fstab, mtcur, bb_common_bufsiz1,
sizeof(bb_common_bufsiz1)))
if (!getmntent_r(fstab, mtcur, bb_common_bufsiz1
+ (mtcur==mtpair ? sizeof(bb_common_bufsiz1)/2 : 0),
sizeof(bb_common_bufsiz1)/2))
{
// Were we looking for something specific?