To prevent this scenario, locate your smb.conf file, and open it in the text editor of your choice. Search the file for the entry, wide links = yes. If it's present, change the yes to no. If the line isn't present, add the following line to the file:
wide links = no.