aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-01 17:32:52 +0000
committerlandley <landley@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-04-01 17:32:52 +0000
commitdb559ae1f3b8168f32a8a7c557142d99d3184514 (patch)
tree84a712ddd93ef0e3aa852af35da7bb4151daae3d
parentf161810e07c30c16a63fcaeed5f5f66d6ae0eb5c (diff)
downloadbusybox-w32-db559ae1f3b8168f32a8a7c557142d99d3184514.tar.gz
busybox-w32-db559ae1f3b8168f32a8a7c557142d99d3184514.tar.bz2
busybox-w32-db559ae1f3b8168f32a8a7c557142d99d3184514.zip
Bug spotted by Kumar Gala. Hopefully this fixes it...
git-svn-id: svn://busybox.net/trunk/busybox@14723 69ca8d6d-28ef-0310-b511-8ec308f3f277
-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)
475 475
476 // Get next fstab entry 476 // Get next fstab entry
477 477
478 if (!getmntent_r(fstab, mtcur, bb_common_bufsiz1, 478 if (!getmntent_r(fstab, mtcur, bb_common_bufsiz1
479 sizeof(bb_common_bufsiz1))) 479 + (mtcur==mtpair ? sizeof(bb_common_bufsiz1)/2 : 0),
480 sizeof(bb_common_bufsiz1)/2))
480 { 481 {
481 // Were we looking for something specific? 482 // Were we looking for something specific?
482 483