[PATCH] Fix:MACHINE.SID -> secrets.tdb
Richard Sharpe
rsharpe at ns.aus.com
Mon Apr 1 23:42:02 GMT 2002
On Tue, 2 Apr 2002, Stefan (metze) Metzmacher wrote:
Wow, two lines, and a copyright notice :-)
> this must work better than the first patch...
> >
> >In 2.2.4pre and HEAD the migration from MACHINE.SID to secrets.tdb
> stored >SID's doesn't work! When the SID drom the file is stored the
> function doesn't >return with True and stores a new generated SID...
> >
> >This patch should fix that.
> >
> >metze
>
> --------------------------------------------------------------------------------------------
> diff -Nur HEAD/source/passdb/machine_sid.c HEAD-fix/source/passdb/machine_sid.c
> --- HEAD/source/passdb/machine_sid.c Thu Mar 14 05:32:06 2002
> +++ HEAD-fix/source/passdb/machine_sid.c Tue Apr 2 08:37:37 2002
> @@ -4,6 +4,7 @@
> Copyright (C) Jeremy Allison 1996-2002
> Copyright (C) Andrew Tridgell 2002
> Copyright (C) Gerald (Jerry) Carter 2000
> + Copyright (C) Stefan (metze) Metzmacher 2002
>
> This program is free software; you can redistribute it and/or modify
> it under the terms of the GNU General Public License as published by
> @@ -139,6 +140,8 @@
> return False;
> }
> }
> + SAFE_FREE(fname);
> + return True;
> }
>
> SAFE_FREE(fname);
>
>
>
> metze
> -----------------------------------------------------------------------------
> Stefan "metze" Metzmacher <metze at metzemix.de>
--
Regards
-----
Richard Sharpe, rsharpe at ns.aus.com, rsharpe at samba.org,
sharpe at ethereal.com
More information about the samba-technical
mailing list