1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-22 16:59:09 +03:00
Commit Graph

41 Commits

Author SHA1 Message Date
efc1b688cf r4291: More *alloc fixes inspired by Albert Chin (china@thewrittenword.com).
Jeremy
2007-10-10 10:53:42 -05:00
61479f56be r4234: More malloc fixes to use the macros.
Jeremy.
2007-10-10 10:53:39 -05:00
e21aab516b Replace all use of bzero with memset ... -
dc69a638b9 More updates on editreg.c to bring it better in line with the Samba source. -
045210e129 Sync up to head ... -
7f76eac5a0 Sync to the changes in head ... -
e91e648c9b Fix up a bunch of problems in editreg.c
Now the build farm will no doubt find more.
-
29d775fe68 Fix up some of the warnings that the build farm is finding ... -
8257f537de Syncronize head editreg.c with 3.0.0 ... -
52d5ff7bda Fix some compiler warnings. -
410451f947 More updates ... -
22d1819011 Updates to editreg.c to provide more functionality ...
Hopefully more coming ...
-
691c63ad6b Convert to popt. -
5040b49867 Recover much of my changes to editreg.c. Add some const and start coding
the regedit file parser etc.
-
490ff93bbf Some fixes to editreg. Clientgen should not be touched, and an update to configure that Herb needs. -
15b2b91f4b this makes it compile, but I'm not sure if it is correct. Are we really
testing a pointer value to be equal to 0x19 ???
-
431ac28b5b 'index' is the name of a libc function. Rename to 'ndx' to avoid compiler
warnings.
-
92a777d0ea BIG patch...
This patch makes Samba compile cleanly with -Wwrite-strings.
 - That is, all string literals are marked as 'const'.  These strings are
always read only, this just marks them as such for passing to other functions.

What is most supprising is that I didn't need to change more than a few lines of code (all
in 'net', which got a small cleanup of net.h and extern variables).  The rest
is just adding a lot of 'const'.

As far as I can tell, I have not added any new warnings - apart from making all
of tdbutil.c's function const (so they warn for adding that const string to
struct).

Andrew Bartlett
-
9181ba0c68 Start adding code to allow the in memory version of the registry tree
structure to be manipulated. Keys can be partially deleted now.
-
8686b551cd We now read in the whole of the registry, including security bits.
Still have to make sure that the datastructure is correct, though.

Then on to writing it out and editing/changing keys, values and sec_descriptors
-
330012a4d7 All the code for reading in the registy is done, but I have a malloc'd
area overrun somewhere :-(
-
eb2f1c826b Almost finished processing the registry encoded SEC DESC ...
Soon to move onto writing these things out.
-
3564565d33 More code to read in and create security descriptor entries ... -
eca76f2f66 Begin to handle Security descriptors for keys. -
16e0a3cc08 Fix a small bug. -
fbdd850e5a Improve the iterator wrt values ... Now prints keys and value names.
Does not print value values, yet.
-
f4235ae1e6 Tidy up some bits. We can now at least list all the keys.
More work to do on the iterators and access functions.

Still not King. Stinks really.
-
5273844a74 Add support to Makefile.in for editreg
Fix a couple of duplicated macros.
-
6b2943122a Complete more of the code. An iterator is close to complete. Compiles,
but not tested as yet.
-
8bc6aa72f5 Clean up the code some more. Create more elements of the tree.
Security Descriptors/Keys not yet processed.
Make debugging printfs only occur if verbose is set.
Create an iterator for the registry key.
Still not King. Bother!
-
8dd608f7ad Handle the creation of more parts of the tree ... Still have to do SK records
and the data parts of the VK records.

Also have to code up routines that can iterate across keys and values, as
well as return values associated with a particular key, etc.
-
b51bb89841 Start allocating structures to keep the in memory copy of the registry tree
in. Don't yet handle the SK records (security descriptors), but will soon.

It still compiles on Linux, but I am still not King.
-
0ee49da74d Begin to decode Value Keys, names and values ... -
738a821108 Add some more handling of Key records ... -
bab2b240ec Commit some more changes ... Start processing the sub-keys, recursively. -
63efb7ab2f Fix the breakage, and start processing the first key record:
./editreg ~rsharpe/profile/NTUSER.DAT
NK HDR: Name len: 12, class name len: 0
Key name: $$$PROTO.HIV
-
ee99843861 Define some macros for accessing shorts and ints in an endian independent manner.
Start processing the header and etc.

Make sure it compiles on Linux, and runs on Linux for the code that is there.

Will try FreeBSD soon, and maybe Slowaris.
-
a4f9b9effc Add definitions of the various NT Registry on-disk structures ... -
10bc459dd9 Fix DAT_TIME so it becomes NTTIME and matches Samba source.
Add code to start reading the registry file.
-
92697adcd7 Some more updates ... -
b9cb3e6f2a The beginnings of a registry editing program. -