aboutsummaryrefslogtreecommitdiff
path: root/util-linux
diff options
context:
space:
mode:
authorGravatar Rob Landley <rob@landley.net>2006-04-01 17:32:52 +0000
committerGravatar Rob Landley <rob@landley.net>2006-04-01 17:32:52 +0000
commit20fef96dd843aa7a1a3f35210f1fe5fc3fa5d989 (patch)
tree84a712ddd93ef0e3aa852af35da7bb4151daae3d /util-linux
parent07a637df472dae766859e41aa799b6a549f107ad (diff)
downloadbusybox-20fef96dd843aa7a1a3f35210f1fe5fc3fa5d989.tar.gz
busybox-20fef96dd843aa7a1a3f35210f1fe5fc3fa5d989.tar.bz2
Bug spotted by Kumar Gala. Hopefully this fixes it...
Diffstat (limited to 'util-linux')
-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 fbb4e36c4..42d0eb223 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?