diff options
author | Jeremy Allison <jra@samba.org> | 2010-11-09 15:07:49 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2010-11-10 01:14:17 +0000 |
commit | f0dcc90f726e1232a4e0b74a03784281ea9a7cdc (patch) | |
tree | f05f122e49e766b6267feb65dc1dc738d4fbd70f /source3/modules | |
parent | 3878fa4c435140bd2e3c59f8bdb932fe19e4c13a (diff) | |
download | samba-f0dcc90f726e1232a4e0b74a03784281ea9a7cdc.tar.gz samba-f0dcc90f726e1232a4e0b74a03784281ea9a7cdc.tar.bz2 samba-f0dcc90f726e1232a4e0b74a03784281ea9a7cdc.zip |
Fix bug 7781 - Samba transforms ShareName to lowercase (sharename) when adding new share via MMC
Change the find_service() interface to not depend on fstring, and
create a useable talloc-based interface.
Jeremy.
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/vfs_xattr_tdb.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/modules/vfs_xattr_tdb.c b/source3/modules/vfs_xattr_tdb.c index ab40af4d6e..435b39a0d6 100644 --- a/source3/modules/vfs_xattr_tdb.c +++ b/source3/modules/vfs_xattr_tdb.c @@ -724,7 +724,7 @@ static void close_xattr_db(void **data) static int xattr_tdb_connect(vfs_handle_struct *handle, const char *service, const char *user) { - fstring sname; + char *sname = NULL; int res, snum; struct db_context *db; @@ -733,9 +733,8 @@ static int xattr_tdb_connect(vfs_handle_struct *handle, const char *service, return res; } - fstrcpy(sname, service); - snum = find_service(sname); - if (snum == -1) { + snum = find_service(talloc_tos(), service, &sname); + if (snum == -1 || sname == NULL) { /* * Should not happen, but we should not fail just *here*. */ |