Univention Bugzilla – Bug 45338
Don't allow share names with consecutive whitespaces
Last modified: 2017-09-13 16:35:10 CEST
+++ This bug was initially created as a clone of Bug #38688 +++
Samba config parser reduces consecutive whitespaces to one.
If a share "a b" is defined "/etc/samba/shares.conf.d/a\ \ \ b" is created and included in "/etc/samba/shares.conf" but samba tries to include "/etc/samba/shares.conf.d/a\ b".
testparm just gives a warning about that but samba-tool testparm dies with "ERROR: Unable to load default file" leading to bug38686
We should reduce consecutive whitespaces (maybe in general, for user and group names etc.?) and/or throw a syntax warning.
please merge univention-samba changes to univention-samba4
and create a bug for 4.1-4
a18852b52b68353d61ab017087d450f59240e516 | Merge branch 'fbest/45338-samba4-share-name-escaping' into 4.2-2
841d5fadda9ef6aeb8df92cc013740622b48f897 | Bug #45338: escape share names
3e90c29c35a0fcefb71d5e61f4c267ab167288f3 | Merge branch 'fbest/45338-samba4-share-name-escaping' into 4.2-2
2a62133546481fc5613b5fcfd8c3d1ba9e8022d9 | YAML Bug #45338
OK - YAML
OK - shares spaces
OK - update
OK - samba-tool drs showrepl