The home directory export for the special [homes] share should be hardened that we don't export the root folder (/) by accident because other software is working incorrectly.
Patches with tests will follow.
Created attachment 14727 [details]
patch for 4.9
Created attachment 14728 [details]
patch for 4.8
Created attachment 14729 [details]
patch for 4.7
This patch set is a backport of patches in master and 4.10 but they were never
reviewed in time for 4.9's support window, let alone the earlier versions.