1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-04 05:18:06 +03:00
Commit Graph

27 Commits

Author SHA1 Message Date
Richard Sharpe
dd22328000 Some fixes to editreg. Clientgen should not be touched, and an update to configure that Herb needs.
(This used to be commit 490ff93bbf)
2003-01-08 17:59:52 +00:00
Herb Lewis
3cbb089782 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 ???
(This used to be commit 15b2b91f4b)
2003-01-07 17:55:14 +00:00
Tim Potter
186bb579f5 'index' is the name of a libc function. Rename to 'ndx' to avoid compiler
warnings.
(This used to be commit 431ac28b5b)
2003-01-07 03:36:39 +00:00
Andrew Bartlett
6d66fb308a 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
(This used to be commit 92a777d0ea)
2003-01-02 09:07:17 +00:00
Richard Sharpe
a3460ac9ba Start adding code to allow the in memory version of the registry tree
structure to be manipulated. Keys can be partially deleted now.
(This used to be commit 9181ba0c68)
2002-12-17 07:45:14 +00:00
Richard Sharpe
f35c421f5b 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
(This used to be commit 8686b551cd)
2002-12-16 03:23:25 +00:00
Richard Sharpe
2e41b42d5a All the code for reading in the registy is done, but I have a malloc'd
area overrun somewhere :-(
(This used to be commit 330012a4d7)
2002-12-15 08:35:19 +00:00
Richard Sharpe
01a6f42443 Almost finished processing the registry encoded SEC DESC ...
Soon to move onto writing these things out.
(This used to be commit eb2f1c826b)
2002-12-15 06:39:17 +00:00
Richard Sharpe
4fb520c45f More code to read in and create security descriptor entries ...
(This used to be commit 3564565d33)
2002-12-14 07:36:34 +00:00
Richard Sharpe
8569cc567f Begin to handle Security descriptors for keys.
(This used to be commit eca76f2f66)
2002-12-13 08:46:26 +00:00
Richard Sharpe
58ea9ea449 Fix a small bug.
(This used to be commit 16e0a3cc08)
2002-12-11 07:55:44 +00:00
Richard Sharpe
f31ec23cf9 Improve the iterator wrt values ... Now prints keys and value names.
Does not print value values, yet.
(This used to be commit fbdd850e5a)
2002-12-11 07:51:07 +00:00
Richard Sharpe
3f501f0e31 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.
(This used to be commit f4235ae1e6)
2002-12-10 23:25:11 +00:00
Richard Sharpe
117589526f Add support to Makefile.in for editreg
Fix a couple of duplicated macros.
(This used to be commit 5273844a74)
2002-12-10 21:29:03 +00:00
Richard Sharpe
c12b8d89e3 Complete more of the code. An iterator is close to complete. Compiles,
but not tested as yet.
(This used to be commit 6b2943122a)
2002-12-10 08:17:40 +00:00
Richard Sharpe
a5ba65ca37 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!
(This used to be commit 8bc6aa72f5)
2002-12-10 06:20:53 +00:00
Richard Sharpe
2ad2557d11 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.
(This used to be commit 8dd608f7ad)
2002-12-09 09:26:17 +00:00
Richard Sharpe
c5d23bdb80 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.
(This used to be commit b51bb89841)
2002-12-09 09:07:00 +00:00
Richard Sharpe
4d9784b3c4 Begin to decode Value Keys, names and values ...
(This used to be commit 0ee49da74d)
2002-12-09 07:55:13 +00:00
Richard Sharpe
cedd02aaab Add some more handling of Key records ...
(This used to be commit 738a821108)
2002-12-09 06:39:54 +00:00
Richard Sharpe
f3237d343e Commit some more changes ... Start processing the sub-keys, recursively.
(This used to be commit bab2b240ec)
2002-12-08 19:50:40 +00:00
Richard Sharpe
98da55e973 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
(This used to be commit 63efb7ab2f)
2002-12-08 19:30:16 +00:00
Richard Sharpe
b09f6f386a 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.
(This used to be commit ee99843861)
2002-12-08 17:04:23 +00:00
Richard Sharpe
1d44520de8 Add definitions of the various NT Registry on-disk structures ...
(This used to be commit a4f9b9effc)
2002-12-08 15:32:02 +00:00
Richard Sharpe
0670d6b156 Fix DAT_TIME so it becomes NTTIME and matches Samba source.
Add code to start reading the registry file.
(This used to be commit 10bc459dd9)
2002-12-08 14:50:06 +00:00
Richard Sharpe
eeeb898fef Some more updates ...
(This used to be commit 92697adcd7)
2002-12-08 08:27:58 +00:00
Richard Sharpe
355b0e271b The beginnings of a registry editing program.
(This used to be commit b9cb3e6f2a)
2002-12-08 07:53:35 +00:00