Samba: Spaces in share names

prpr

Well-Known Member
I've always found having spaces in Share names a right old pain. It's hard to type and some software (e.g. Linux's mount command) can't cope with it properly.
How about changing it as follows:
Code:
humax# diff -u /mod/etc/mdev/z9samba~ /mod/etc/mdev/z9samba
--- /mod/etc/mdev/z9samba~
+++ /mod/etc/mdev/z9samba
@@ -12,7 +12,7 @@
 add_entry ()
 {
 cat <<EOD
-[$name]
+[${name// /}]
    comment = $name
    path = $mp
    public = yes
 
Back
Top