diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-09-26 10:25:34 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-09-26 10:25:34 +0000 |
commit | ad514000db54b887c5c0f8734415e2b10698b365 (patch) | |
tree | 5bd885d043786d2e8bef317c10adb54c13c835cb /source3/passdb | |
parent | 9e70b39ab29b877906ca3e20bc25700c2e05ae1b (diff) | |
download | samba-ad514000db54b887c5c0f8734415e2b10698b365.tar.gz samba-ad514000db54b887c5c0f8734415e2b10698b365.tar.bz2 samba-ad514000db54b887c5c0f8734415e2b10698b365.zip |
Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> to do a *much*
better job of working with usrmgr. Previously we were blanking out entires,
and all sort of mischif.
The new patch (which I've now had a chance to test/modify) also takes care not
to expand % values (ie we go \\%L\%U -> \\server\user, we don't want to store
\\server\user back) and to correctly notice 'not set' compared to 'null string'
etc.
Andrew Bartlett
(This used to be commit ab878b6cc4132594fc33f78aeebf0d8b7266c150)
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/passdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index b78f26a8e8..2d8ea858aa 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -978,7 +978,7 @@ const char *pdb_unistr2_convert(const UNISTR2 *from) static pstring convert_buffer; *convert_buffer = 0; if (!from) { - return convert_buffer; + return NULL; } unistr2_to_ascii(convert_buffer, from, sizeof(pstring)); |