summaryrefslogtreecommitdiff
path: root/source4/lib/registry/tools/regshell.c
AgeCommit message (Collapse)AuthorFilesLines
2010-03-22s4:registry - adaptions for "add memory contexts for delete value/key functions"Matthias Dieter Wallnöfer1-2/+2
2010-03-21s4:regshell - here we don't need a newline - "ctime" itself provides oneMatthias Dieter Wallnöfer1-1/+1
2010-03-21s4:regshell - don't return an error code if we get a security descriptors errorMatthias Dieter Wallnöfer1-2/+2
s4 itself doesn't support them so print only the error code out (in s4's case WERR_NOT_SUPPORTED).
2010-03-06s4:libregistry - change counters to be "unsigned"Matthias Dieter Wallnöfer1-7/+7
Also the s4 registry library has to have "unsigned" counters like the Windows one.
2010-02-22Spelling fixes for source4/lib/registry.Brad Hards1-1/+1
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
2009-09-26regshell: Add support for 'cd ..' and cd relative to the root.Wilco Baan Hofman1-8/+73
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-02-02s4:lib/registry: s/new/nkeyStefan Metzmacher1-3/+3
metze
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-1/+1
list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
2008-09-21Registry client library: Fixes the creation of new keysMatthias Dieter Wallnöfer1-1/+2
Giving the right permissions
2008-09-21Registry tools "regshell" and "regtree": Small fixup'sMatthias Dieter Wallnöfer1-9/+4
I fixed up my fault regarding the handling of the default value (if it doesn't exist it hasn't the index number zero and you get immediately the subvalues). Then I corrected an error in regshell to find the right registry context.
2008-09-21Registry tool "regshell": Handle the default attribute in the right wayMatthias Dieter Wallnöfer1-13/+15
This commit introduces the default attribute in "regshell"
2008-09-09Fix up the "reg_common_open_remote" callMatthias Dieter Wallnöfer1-2/+2
This fixes up the "reg_common_open_remote" call because it didn't work anymore without the event context. (This used to be commit 42ab865fc937a625d1eece45abe96bf354ddff8b)
2008-09-09Two useful "regshell" improvementsMatthias Dieter Wallnöfer1-8/+6
This patch corrects the "change key" command (Follow up isn't supported yet) and adds a newline in a error message. (This used to be commit d1052dc42ef591208cfbf7059b28a078f6d4f0bf)
2008-06-14Use a custom init function for samba4 that sets a samba4Simo Sorce1-1/+1
specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-04-17Specify event_context to ldb_wrap_connect explicitly.Jelmer Vernooij1-2/+5
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-02-21Remove more uses of global_loadparm.Jelmer Vernooij1-3/+4
(This used to be commit 3430cc60972b94d0d238bc39f473feed96949c5d)
2008-02-11Fix switching of hives in regshell (#5254)Jelmer Vernooij1-0/+3
(This used to be commit 5f33545c78e13871d622c0a5a0ded789bf624869)
2008-01-07r26689: registry: Return max_subkeynamelen, max_valnamelen and ↵Jelmer Vernooij1-8/+24
max_valbufsize in getkeyinfo(). (This used to be commit b06896d2378e536f5044dbe500a5232a89d6d0b5)
2007-12-21r26453: Janitorial: Don't use a static char[] in smb_readline_replacement.Kai Blin1-1/+5
Fix up callers to free the memory returned, as that is needed if we use the original readline function as well. (This used to be commit c81ead1c38f417d442157b21d0d389f6a540c6f9)
2007-12-21r26443: Remove global_loadparm instances.Jelmer Vernooij1-1/+1
(This used to be commit 8242c696235d1bfb402b5c276a57f36d93610545)
2007-12-21r26355: Eliminate global_loadparm in more places.Jelmer Vernooij1-2/+2
(This used to be commit 5d589a0d94bd76a9b4c9fc748854e8098ea43c4d)
2007-12-21r26329: Fix more loadparm_context references. Only about a 100 left now.Jelmer Vernooij1-1/+1
(This used to be commit ddf233346d848e91bc6a6a572f0f6120540503b7)
2007-12-21r26236: Remove more uses of global_loadparm or specify loadparm_context ↵Jelmer Vernooij1-1/+2
explicitly. (This used to be commit 5b29ef7c03d9ae76b0ca909e9f03a58e1bad3521)
2007-12-21r25603: More reformat.Günther Deschner1-62/+84
Guenther (This used to be commit 176614423ea57e853211c43b9853203243c6a978)
2007-10-10r25000: Fix some more C++ compatibility warnings.Jelmer Vernooij1-4/+2
(This used to be commit 08bb1ef643ab906f1645cf6f32763dc73b1884e4)
2007-10-10r24725: Don't segfault if hive file can't be foundJelmer Vernooij1-0/+2
(This used to be commit 2daa8fa88dbc80a7c54c4b489b1037658d95755c)
2007-10-10r24667: Finally merge the registry improvements that Wilco Baan Hofman and I ↵Jelmer Vernooij1-109/+157
have been working on for at least half a year now. Contains the following improvements: * proper layering (finally!) for the registry library. Distinction is now made between 'real' backends (local, remote, wine, etc) and the low-level hive backends (regf, creg, ldb, ...) that are only used by the local registry backend * tests for all important hive and registry operations * re-enable RPC-WINREG tests (still needs more work though, as some return values aren't checked yet) * write support for REGF files * dir backend now supports setting/reading values, creating keys * support for storing security descriptors * remove CREG backend as it was incomplete, didn't match the data model and wasn't used at all anyway * support for parsing ADM files as used by the policy editor (see lib/policy) * support for parsing PREG files (format used by .POL files) * new streaming interface for registry diffs (improves speed and memory usage for regdiff/regpatch significantly) ... and fixes a large number of bugs in the registry code (This used to be commit 7a1eec6358bc863dfc671c542b7185d3e39d7b5a)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r21834: Remove unnecessary includesJelmer Vernooij1-1/+0
(This used to be commit 7d10e192caa60b816466a9deddf736afd2445080)
2007-10-10r18584: found one of the fd leaks. The registry backend was using aAndrew Tridgell1-1/+1
talloc(NULL, xxx) to allocate the registry context. That had two consequences 1) it was a massive memory leak, as all winreg operations leaked their entire context (including an open ldb database) every time 2) event_context_find() never found the exsting event context, so we used a new event context each time, which called epoll_create() each time, which caused a fd to be allocated (This used to be commit 1c0a3de39828b43149d8981fc7f10e7c8b59a392)
2007-10-10r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available.Jelmer Vernooij1-1/+1
(This used to be commit 8b622c5ded0732df0eaf9f6226f52a27b6eacd73)
2007-10-10r15806: Remove some unnecessary nesting making the function harder to read.Jelmer Vernooij1-11/+15
(This used to be commit 2e1ce0189961335f654202074101819d8d933748)
2007-10-10r15406: Move 'smbreadline' out of libreplace as it doesn't replace functionalityJelmer Vernooij1-1/+1
not available on some platforms but is a Samba-specific library. (This used to be commit e9d3660fa6678424e5159708a1aa572824926c8e)
2007-10-10r15375: Rename readline.h to smbreadline.h avoid clashes with system header.Jelmer Vernooij1-1/+1
(This used to be commit ccc3d8a95441e7a7015f0cf0e622ec9e38347d33)
2007-10-10r15370: Fix more dependencies for shared libsJelmer Vernooij1-2/+2
(This used to be commit 9a518661fbb76bf1c153afc6f581e888186dc165)
2007-10-10r15364: Use global list of predefined keysJelmer Vernooij1-14/+2
(This used to be commit eee9e33442f846d278f0fc545480cc2ec8ea295b)
2007-10-10r14981: fixed a use of a wild ptr in regshellAndrew Tridgell1-3/+3
(This used to be commit 868deaf89f34124a2a7ba2798fad83ffdabe316d)
2007-10-10r14599: Pass ACLs down the registry layer.Jelmer Vernooij1-3/+3
(This used to be commit 6cdefd8945eee5513a6993350ea71f12d4dbd6fa)
2007-10-10r14542: Remove librpc, libndr and libnbt from includes.hJelmer Vernooij1-0/+1
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij1-0/+1
try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10r14349: Kill proto.h!Jelmer Vernooij1-0/+1
Prototypes are now spread over multiple headers, usually one per subsystem. This change is required to allow proper header dependencies later on, without recompiling Samba each time the mtime of any source file changes. (This used to be commit 3da79bf909f801386a52e6013db399c384d0401c)
2007-10-10r13944: Yet another round of splitups.Jelmer Vernooij1-0/+1
(This used to be commit f87debeb12cebd734b47314554ab671c9e06237e)
2007-10-10r12620: Get rid of automatically generated lists of init functions of ↵Jelmer Vernooij1-3/+0
subsystems. This allows Samba libraries to be used by other projects (and parts of Samba to be built as shared libraries). (This used to be commit 44f0aba715bfedc7e1ee3d07e9a101a91dbd84b3)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-2/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12500: Use init functions explicitly in a few more places. 'gensec' and ↵Jelmer Vernooij1-0/+2
'librpc' are the only two subsystems left to convert. (This used to be commit f6bbc72996aeee8607fc583140fd60be0e06e969)
2007-10-10r12499: Move smb_build.h out of includes.hJelmer Vernooij1-0/+1
(This used to be commit c92ace494f92084ddf178626cdf392d151043bc7)
2007-10-10r10604: Put in the new registry "patchfile" code (similar to ldifJelmer Vernooij1-3/+3
for LDB); not finished yet. (This used to be commit b405b27ba4bf4ddbaff9ca58926d94d1b2fd09f6)
2007-10-10r10052: Add 'print' commandJelmer Vernooij1-0/+22
(This used to be commit d99c9e2817fbbe2a0a34910672c8473889bc6176)
2007-10-10r10026: Move registry header file to lib/registryJelmer Vernooij1-2/+14
Add support for showing security descriptor in regshell Add support for saving files in NT4 registry backend (This used to be commit 47cecd4726e6568f1aafb404646d2664f630a9bb)
2007-10-10r10007: Merge data_blk and data_len member of registry_value into a DATA_BLOB.Jelmer Vernooij1-1/+1
Fix handling of REG_DWORD in the LDB backend. Fix a couple of warnings (This used to be commit 709fdc7ebf5a77cfb50359fad978884777decc3b)