[PATCH] Fix:MACHINE.SID -> secrets.tdb
Stefan (metze) Metzmacher
metze at metzemix.de
Mon Apr 1 23:12:51 GMT 2002
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>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: machine_sid.patch
Type: application/octet-stream
Size: 670 bytes
Desc: not available
Url : http://lists.samba.org/archive/samba-technical/attachments/20020401/bccb1d08/machine_sid.obj
More information about the samba-technical
mailing list