summaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index fbb4e36..42d0eb2 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -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?