Oh I'm sorry. The code I gave did add // and /, which was not ok again. I will try something like: memcpy(vfsdata+len0, "\\\\", 2) len0+=2; memcpy(vfsdata+len0, smb_server->name, strlen(smb_server->name)); len0+=strlen(smb_server->name); memcpy(vfsdata+len0, "\\", 1) len0+=1; memcpy(vfsdata+len0, smb_share->name, strlen(smb_share->name)); len0+=strlen(smb_share->name); and optional a terminator: *(vfsdata+len0)='\0'; I will test this, and report back. Stef -- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html