summaryrefslogtreecommitdiff
path: root/source3/sam/gumm_tdb.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2003-04-17 14:25:52 +0000
committerSimo Sorce <idra@samba.org>2003-04-17 14:25:52 +0000
commit491aa2bfde1010709e61807a62d5a77b54a6179f (patch)
treebdc53bb5a3c8fd41a714d1748063ef144958e716 /source3/sam/gumm_tdb.c
parent800f68d2fbba2cc1727329c5c026e5a8165b9fd0 (diff)
downloadsamba-491aa2bfde1010709e61807a62d5a77b54a6179f.tar.gz
samba-491aa2bfde1010709e61807a62d5a77b54a6179f.tar.bz2
samba-491aa2bfde1010709e61807a62d5a77b54a6179f.zip
seem that someone changed the semanthic of unix_strlower without fixing all
places where it was used, this caused me segfaults in the last week :( add more debugging in idmap to chase down a problem (This used to be commit 6393105bda12fb3f6211e4f0128aabf588431b49)
Diffstat (limited to 'source3/sam/gumm_tdb.c')
-rw-r--r--source3/sam/gumm_tdb.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/sam/gumm_tdb.c b/source3/sam/gumm_tdb.c
index 5e390490cf..5da2407faa 100644
--- a/source3/sam/gumm_tdb.c
+++ b/source3/sam/gumm_tdb.c
@@ -264,7 +264,8 @@ static NTSTATUS get_object_by_name(TALLOC_CTX *mem_ctx, struct tdbsam2_object *o
return ret;
}
- unix_strlower(name, -1, objname, sizeof(objname));
+ fstrcpy(objname, name);
+ strlower(objname);
slprintf(keystr, sizeof(keystr)-1, "%s%s", NAMEPREFIX, objname);
key.dptr = keystr;
@@ -603,7 +604,8 @@ static NTSTATUS tdbsam2_get_domain_sid(DOM_SID *sid, const char* name)
goto done;
}
- unix_strlower(name, -1, domname, sizeof(domname));
+ fstrcpy(domname, name);
+ strlower(domname);
ret = get_object_by_name(mem_ctx, &obj, domname);
@@ -650,7 +652,8 @@ static NTSTATUS tdbsam2_set_domain_sid (const DOM_SID *sid, const char *name)
}
}
- unix_strlower(name, -1, domname, sizeof(domname));
+ fstrcpy(domname, name);
+ strlower(domname);
/* TODO: we need to lock this entry until updated! */