This stat check prevents use of paths that do not (yet) exist and, more severely, it prevents the use of % macros in the path name.
Created attachment 6560 [details]
patch for master and 3.6
This patch removes the stat check from net conf addshare.
I am handing this to autobuild for master...
==> karolin for inclusion in 3.6
Pushed to v3-6-test.
Closing out bug report.