From: Rafał Miłecki Date: Thu, 8 Feb 2018 13:50:19 +0000 (+0100) Subject: mount: improve handling mounts table size X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fmountd.git;a=commitdiff_plain;h=7aadd1cb3034828b3b9bced5b38b6bd00f0b7fc2;hp=7aadd1cb3034828b3b9bced5b38b6bd00f0b7fc2 mount: improve handling mounts table size This is static array with a size set to MAX_MOUNTED. Old code: 1) Was never using the last table entry/row 2) Was logging the same message for every mount entry above limit This fixes off-by-one, moves limit check to the proper place and uses "break" when needed. Signed-off-by: Rafał Miłecki ---