From 302bffc08f4e0ff48dedd35c0580b143ab52671f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 4 Jan 2003 08:57:51 +0000 Subject: Merge from HEAD - we already have one function for converting a unistr2 to a static 'unix' string, so we don't need a second pdb specific version. Andrew Bartlett (This used to be commit 91ca4771c6b834747b06fff21822a14e929de2c1) --- source3/passdb/passdb.c | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'source3/passdb/passdb.c') diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 13e85bd21f..71a880d295 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -989,23 +989,6 @@ BOOL local_sid_to_gid(gid_t *pgid, const DOM_SID *psid, enum SID_NAME_USE *name_ return True; } -/** - * Quick hack to do an easy ucs2 -> mulitbyte conversion - * @return static buffer containing the converted string - **/ - -const char *pdb_unistr2_convert(const UNISTR2 *from) -{ - static pstring convert_buffer; - *convert_buffer = 0; - if (!from) { - return NULL; - } - - unistr2_to_ascii(convert_buffer, from, sizeof(pstring)); - return convert_buffer; -} - /************************************************************* Change a password entry in the local smbpasswd file. -- cgit