66ee744ccb
s4-registry: Don't leak memory on error.
...
Reviewed-by: Alexander Bokovoy <ab@samba.org >
2013-02-22 16:36:14 +01:00
bf650a1b59
s4:registry:regdiff: use existing talloc context for the event context
...
Autobuild-User(master): Michael Adam <obnox@samba.org >
Autobuild-Date(master): Fri Jul 13 02:51:44 CEST 2012 on sn-devel-104
2012-07-13 02:51:44 +02:00
342ab97506
s4:registry:regdiff: add TALLOC_CTX * argument to open_backend()
2012-07-13 00:57:20 +02:00
6ee16cefc9
s4:registry: add a TALLOC_CTX argument to reg_open_remote()
2012-07-13 00:57:19 +02:00
24ed8c5924
regshell: Fix a counter that can actually be non-zero.
...
This was a regression caused by one of the unsigned patches.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org >
Autobuild-Date: Wed Feb 8 16:00:22 CET 2012 on sn-devel-104
2012-02-08 16:00:22 +01:00
ec094bf9ac
WERROR type variable being incorrectly checked with a NT_STATUS_IS_X
...
type macro.
2012-01-23 12:18:01 -08:00
0ff7e0c998
samba: share readline wrappers among all buildsystems.
...
Guenther
2010-10-01 22:30:22 +02:00
2c325236be
s4:regshell - fix an "asprintf"
2010-05-28 10:04:46 +02:00
8ddb4f6c84
s4:regshell - don't use negative exit codes
2010-05-28 10:04:45 +02:00
f9ca9e46ad
Finish removal of iconv_convenience in public API's.
2010-05-18 11:45:30 +02:00
43170dafbc
s4:registry - adaptions for "add memory contexts for delete value/key functions"
2010-03-22 22:31:00 +01:00
872d2330a4
s4:regtree - fix counter variables to be "unsigned"
2010-03-21 23:41:50 +01:00
6c39b10f1d
s4:regshell - here we don't need a newline - "ctime" itself provides one
2010-03-21 16:02:36 +01:00
d4425ecea5
s4:regshell - don't return an error code if we get a security descriptors error
...
s4 itself doesn't support them so print only the error code out (in s4's case
WERR_NOT_SUPPORTED).
2010-03-21 15:56:26 +01:00
89ab6818e1
s4:libregistry - change counters to be "unsigned"
...
Also the s4 registry library has to have "unsigned" counters like the Windows
one.
2010-03-06 17:48:25 +01:00
3eacc83b35
Spelling fixes for source4/lib/registry.
...
Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de >
2010-02-22 21:45:37 +01:00
9af1c6db0f
regshell: Add support for 'cd ..' and cd relative to the root.
...
Signed-off-by: Jelmer Vernooij <jelmer@samba.org >
2009-09-26 17:05:34 +02:00
0c3bc60a01
s4:lib/registry: s/new/nkey
...
metze
2009-02-02 13:09:18 +01:00
793f1cdbd9
Changed code to use proper talloc context instead of NULL to control memory leak.
2009-01-02 20:55:20 +01:00
cc9771d3da
Memory leak fixed due to accumulation of open reg keys.
2009-01-02 20:55:20 +01:00
183c379fe5
s4:lib/tevent: rename structs
...
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-12-29 20:46:40 +01:00
27dce768d3
Remove more usages of global_loadparm.
2008-10-24 14:57:03 +02:00
5c3e76eddd
Revert "Registry tool "regtree": Removing an error message"
...
This reverts commit f37a57fa366e2b0d77f9c1bd232d42a0f2cceb52.
2008-09-21 23:18:01 +02:00
db829f04ad
Registry tool "regdiff": Add the event context for remote connections
...
Adds the event context for remote connections to make the tool working again.
2008-09-21 23:18:00 +02:00
04f29b84a4
Registry client library: Fixes the creation of new keys
...
Giving the right permissions
2008-09-21 23:17:59 +02:00
92e1574d3d
Registry tools "regshell" and "regtree": Small fixup's
...
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-21 23:17:59 +02:00
a2d8ccad73
Registry tool "regshell": Handle the default attribute in the right way
...
This commit introduces the default attribute in "regshell"
2008-09-21 23:17:58 +02:00
965a12f5b8
Registry tool "regtree": Removing an error message
...
The error message "Error occurred while fetching values" doesn't seem very useful, so remove it.
2008-09-21 23:17:58 +02:00
faa4ac2a52
Registry tool "regtree": Handle the default attribute in the right way
...
This commit introduces the default attribute in "regtree"
2008-09-21 23:17:58 +02:00
3911808323
Fix up the "reg_common_open_remote" call
...
This fixes up the "reg_common_open_remote" call because it didn't work anymore without the event context.
(This used to be commit 42ab865fc9
)
2008-09-09 18:03:54 +02:00
8b6b851390
Two useful "regshell" improvements
...
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 d1052dc42e
)
2008-09-09 18:01:20 +02:00
2daf2897d5
Use a custom init function for samba4 that sets a samba4
...
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 e566a2f308
)
2008-06-14 13:00:53 -04:00
21fc767378
Specify event_context to ldb_wrap_connect explicitly.
...
(This used to be commit b4e1ae07a2
)
2008-04-17 12:23:44 +02:00
2ef07ad551
Remove unused arguments from reg_open_local().
...
(This used to be commit fee7ea7080
)
2008-04-16 01:32:54 +02:00
4e5e7a7c68
Reintroduce header previously autogenerated but ignored by git.
...
Also fixed extra include in regpatch.
(This used to be commit 0e371cf169
)
2008-04-02 16:47:17 +02:00
3101cb888d
Remove uses of global_loadparm.
...
(This used to be commit a16c9a2129
)
2008-02-25 12:51:55 +01:00
48307b54f9
Remove more uses of global_loadparm.
...
(This used to be commit 3430cc6097
)
2008-02-21 16:01:19 +01:00
d82b6dd09a
Fix switching of hives in regshell ( #5254 )
...
(This used to be commit 5f33545c78
)
2008-02-11 11:48:43 +01:00
47f6bbf8cf
r26689: registry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in getkeyinfo().
...
(This used to be commit b06896d237
)
2008-01-07 08:18:07 -06:00
7f8276b06d
r26688: Fix listing remote predefined keys and subkeys. This fixes bug 3431.
...
(This used to be commit 846876ad32
)
2008-01-07 08:18:06 -06:00
670918f916
r26563: Fix reg_diff_apply argument order.
...
(This used to be commit cfffd0357e
)
2007-12-24 01:51:01 -06:00
43ac3d9b44
r26453: Janitorial: Don't use a static char[] in smb_readline_replacement.
...
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 c81ead1c38
)
2007-12-21 05:50:18 +01:00
96a200511e
r26443: Remove global_loadparm instances.
...
(This used to be commit 8242c69623
)
2007-12-21 05:50:11 +01:00
b65dba2245
r26355: Eliminate global_loadparm in more places.
...
(This used to be commit 5d589a0d94
)
2007-12-21 05:49:01 +01:00
bca631be1f
r26329: Fix more loadparm_context references. Only about a 100 left now.
...
(This used to be commit ddf233346d
)
2007-12-21 05:48:42 +01:00
4c4323009f
r26327: Explicit loadparm_context for RPC client functions.
...
(This used to be commit eeb2251d22
)
2007-12-21 05:48:41 +01:00
6c999cd123
r26236: Remove more uses of global_loadparm or specify loadparm_context explicitly.
...
(This used to be commit 5b29ef7c03
)
2007-12-21 05:47:15 +01:00
33032276f5
r25603: More reformat.
...
Guenther
(This used to be commit 176614423e
)
2007-12-21 05:42:48 +01:00
cd962355ab
r25000: Fix some more C++ compatibility warnings.
...
(This used to be commit 08bb1ef643
)
2007-10-10 15:05:27 -05:00
6cf69fee18
r24994: Fix some C++ warnings.
...
(This used to be commit 925abf74fa
)
2007-10-10 15:05:26 -05:00