• The forum software that supports hummy.tv has been upgraded to XenForo 2.3!

    Please bear with us as we continue to tweak things, and feel free to post any questions, issues or suggestions in the upgrade thread.

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