1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-28 17:47:29 +03:00

41 Commits

Author SHA1 Message Date
Jeremy Allison
efc1b688cf r4291: More *alloc fixes inspired by Albert Chin (china@thewrittenword.com).
Jeremy
2007-10-10 10:53:42 -05:00
Jeremy Allison
61479f56be r4234: More malloc fixes to use the macros.
Jeremy.
2007-10-10 10:53:39 -05:00
Richard Sharpe
e21aab516b Replace all use of bzero with memset ... -
Richard Sharpe
dc69a638b9 More updates on editreg.c to bring it better in line with the Samba source. -
Richard Sharpe
045210e129 Sync up to head ... -
Richard Sharpe
7f76eac5a0 Sync to the changes in head ... -
Richard Sharpe
e91e648c9b Fix up a bunch of problems in editreg.c
Now the build farm will no doubt find more.
-
Richard Sharpe
29d775fe68 Fix up some of the warnings that the build farm is finding ... -
Richard Sharpe
8257f537de Syncronize head editreg.c with 3.0.0 ... -
Tim Potter
52d5ff7bda Fix some compiler warnings. -
Richard Sharpe
410451f947 More updates ... -
Richard Sharpe
22d1819011 Updates to editreg.c to provide more functionality ...
Hopefully more coming ...
-
Jelmer Vernooij
691c63ad6b Convert to popt. -
Richard Sharpe
5040b49867 Recover much of my changes to editreg.c. Add some const and start coding
the regedit file parser etc.
-
Richard Sharpe
490ff93bbf Some fixes to editreg. Clientgen should not be touched, and an update to configure that Herb needs. -
Herb Lewis
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 ???
-
Tim Potter
431ac28b5b 'index' is the name of a libc function. Rename to 'ndx' to avoid compiler
warnings.
-
Andrew Bartlett
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
-
Richard Sharpe
9181ba0c68 Start adding code to allow the in memory version of the registry tree
structure to be manipulated. Keys can be partially deleted now.
-
Richard Sharpe
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
-
Richard Sharpe
330012a4d7 All the code for reading in the registy is done, but I have a malloc'd
area overrun somewhere :-(
-
Richard Sharpe
eb2f1c826b Almost finished processing the registry encoded SEC DESC ...
Soon to move onto writing these things out.
-
Richard Sharpe
3564565d33 More code to read in and create security descriptor entries ... -
Richard Sharpe
eca76f2f66 Begin to handle Security descriptors for keys. -
Richard Sharpe
16e0a3cc08 Fix a small bug. -
Richard Sharpe
fbdd850e5a Improve the iterator wrt values ... Now prints keys and value names.
Does not print value values, yet.
-
Richard Sharpe
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.
-
Richard Sharpe
5273844a74 Add support to Makefile.in for editreg
Fix a couple of duplicated macros.
-
Richard Sharpe
6b2943122a Complete more of the code. An iterator is close to complete. Compiles,
but not tested as yet.
-
Richard Sharpe
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!
-
Richard Sharpe
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.
-
Richard Sharpe
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.
-
Richard Sharpe
0ee49da74d Begin to decode Value Keys, names and values ... -
Richard Sharpe
738a821108 Add some more handling of Key records ... -
Richard Sharpe
bab2b240ec Commit some more changes ... Start processing the sub-keys, recursively. -
Richard Sharpe
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
-
Richard Sharpe
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.
-
Richard Sharpe
a4f9b9effc Add definitions of the various NT Registry on-disk structures ... -
Richard Sharpe
10bc459dd9 Fix DAT_TIME so it becomes NTTIME and matches Samba source.
Add code to start reading the registry file.
-
Richard Sharpe
92697adcd7 Some more updates ... -
Richard Sharpe
b9cb3e6f2a The beginnings of a registry editing program. -