Fix bug #7781 (Samba transforms "ShareName" to lowercase when adding new share via...
[samba.git] / source3 / modules / vfs_xattr_tdb.c
index f7fbfce4cb979f2232d9c301a78faab41996e5b1..fa8db047f8cf6b03f7fd6e98384519f9c2612185 100644 (file)
@@ -733,8 +733,7 @@ static int xattr_tdb_connect(vfs_handle_struct *handle, const char *service,
                return res;
        }
 
-       fstrcpy(sname, service);
-       snum = find_service(sname);
+       snum = find_service(service, sname);
        if (snum == -1) {
                /*
                 * Should not happen, but we should not fail just *here*.