diff options
-rw-r--r-- | util-linux/mount.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c index 1b6ff965b..1e4d5aa31 100644 --- a/util-linux/mount.c +++ b/util-linux/mount.c | |||
@@ -477,8 +477,9 @@ int mount_main(int argc, char **argv) | |||
477 | 477 | ||
478 | // Get next fstab entry | 478 | // Get next fstab entry |
479 | 479 | ||
480 | if (!getmntent_r(fstab, mtcur, bb_common_bufsiz1, | 480 | if (!getmntent_r(fstab, mtcur, bb_common_bufsiz1 |
481 | sizeof(bb_common_bufsiz1))) | 481 | + (mtcur==mtpair ? sizeof(bb_common_bufsiz1)/2 : 0), |
482 | sizeof(bb_common_bufsiz1)/2)) | ||
482 | { | 483 | { |
483 | // Were we looking for something specific? | 484 | // Were we looking for something specific? |
484 | 485 | ||