1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-23 11:17:06 +03:00

138 Commits

Author SHA1 Message Date
Günther Deschner
0ff7e0c998 samba: share readline wrappers among all buildsystems.
Guenther
2010-10-01 22:30:22 +02:00
Matthias Dieter Wallnöfer
2c325236be s4:regshell - fix an "asprintf" 2010-05-28 10:04:46 +02:00
Matthias Dieter Wallnöfer
8ddb4f6c84 s4:regshell - don't use negative exit codes 2010-05-28 10:04:45 +02:00
Jelmer Vernooij
f9ca9e46ad Finish removal of iconv_convenience in public API's. 2010-05-18 11:45:30 +02:00
Matthias Dieter Wallnöfer
43170dafbc s4:registry - adaptions for "add memory contexts for delete value/key functions" 2010-03-22 22:31:00 +01:00
Matthias Dieter Wallnöfer
872d2330a4 s4:regtree - fix counter variables to be "unsigned" 2010-03-21 23:41:50 +01:00
Matthias Dieter Wallnöfer
6c39b10f1d s4:regshell - here we don't need a newline - "ctime" itself provides one 2010-03-21 16:02:36 +01:00
Matthias Dieter Wallnöfer
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
Matthias Dieter Wallnöfer
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
Brad Hards
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
Wilco Baan Hofman
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
Stefan Metzmacher
0c3bc60a01 s4:lib/registry: s/new/nkey
metze
2009-02-02 13:09:18 +01:00
scudette@gmail.com
793f1cdbd9 Changed code to use proper talloc context instead of NULL to control memory leak. 2009-01-02 20:55:20 +01:00
scudette@gmail.com
cc9771d3da Memory leak fixed due to accumulation of open reg keys. 2009-01-02 20:55:20 +01:00
Stefan Metzmacher
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
Jelmer Vernooij
27dce768d3 Remove more usages of global_loadparm. 2008-10-24 14:57:03 +02:00
Matthias Dieter Wallnöfer
5c3e76eddd Revert "Registry tool "regtree": Removing an error message"
This reverts commit f37a57fa366e2b0d77f9c1bd232d42a0f2cceb52.
2008-09-21 23:18:01 +02:00
Matthias Dieter Wallnöfer
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
Matthias Dieter Wallnöfer
04f29b84a4 Registry client library: Fixes the creation of new keys
Giving the right permissions
2008-09-21 23:17:59 +02:00
Matthias Dieter Wallnöfer
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
Matthias Dieter Wallnöfer
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
Matthias Dieter Wallnöfer
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
Matthias Dieter Wallnöfer
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
Matthias Dieter Wallnöfer
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 42ab865fc937a625d1eece45abe96bf354ddff8b)
2008-09-09 18:03:54 +02:00
Matthias Dieter Wallnöfer
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 d1052dc42ef591208cfbf7059b28a078f6d4f0bf)
2008-09-09 18:01:20 +02:00
Simo Sorce
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 e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-06-14 13:00:53 -04:00
Jelmer Vernooij
21fc767378 Specify event_context to ldb_wrap_connect explicitly.
(This used to be commit b4e1ae07a284c044704322446c94351c2decff91)
2008-04-17 12:23:44 +02:00
Jelmer Vernooij
2ef07ad551 Remove unused arguments from reg_open_local().
(This used to be commit fee7ea7080ec40182efc6ffe57b267444eb9389a)
2008-04-16 01:32:54 +02:00
Jelmer Vernooij
4e5e7a7c68 Reintroduce header previously autogenerated but ignored by git.
Also fixed extra include in regpatch.
(This used to be commit 0e371cf169e9a607fcbb3e65437ab9413935dd52)
2008-04-02 16:47:17 +02:00
Jelmer Vernooij
3101cb888d Remove uses of global_loadparm.
(This used to be commit a16c9a2129ce92e7e1a613b2badd168e42ead436)
2008-02-25 12:51:55 +01:00
Jelmer Vernooij
48307b54f9 Remove more uses of global_loadparm.
(This used to be commit 3430cc60972b94d0d238bc39f473feed96949c5d)
2008-02-21 16:01:19 +01:00
Jelmer Vernooij
d82b6dd09a Fix switching of hives in regshell (#5254)
(This used to be commit 5f33545c78e13871d622c0a5a0ded789bf624869)
2008-02-11 11:48:43 +01:00
Jelmer Vernooij
47f6bbf8cf r26689: registry: Return max_subkeynamelen, max_valnamelen and max_valbufsize in getkeyinfo().
(This used to be commit b06896d2378e536f5044dbe500a5232a89d6d0b5)
2008-01-07 08:18:07 -06:00
Jelmer Vernooij
7f8276b06d r26688: Fix listing remote predefined keys and subkeys. This fixes bug 3431.
(This used to be commit 846876ad32dc86fe7c367db084e76c670c61b389)
2008-01-07 08:18:06 -06:00
Jelmer Vernooij
670918f916 r26563: Fix reg_diff_apply argument order.
(This used to be commit cfffd0357ee4c4bb3f3c9adb051eeee1bbac526a)
2007-12-24 01:51:01 -06:00
Kai Blin
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 c81ead1c38f417d442157b21d0d389f6a540c6f9)
2007-12-21 05:50:18 +01:00
Jelmer Vernooij
96a200511e r26443: Remove global_loadparm instances.
(This used to be commit 8242c696235d1bfb402b5c276a57f36d93610545)
2007-12-21 05:50:11 +01:00
Jelmer Vernooij
b65dba2245 r26355: Eliminate global_loadparm in more places.
(This used to be commit 5d589a0d94bd76a9b4c9fc748854e8098ea43c4d)
2007-12-21 05:49:01 +01:00
Jelmer Vernooij
bca631be1f r26329: Fix more loadparm_context references. Only about a 100 left now.
(This used to be commit ddf233346d848e91bc6a6a572f0f6120540503b7)
2007-12-21 05:48:42 +01:00
Jelmer Vernooij
4c4323009f r26327: Explicit loadparm_context for RPC client functions.
(This used to be commit eeb2251d22b3d6e0379444a73af69d1014692b07)
2007-12-21 05:48:41 +01:00
Jelmer Vernooij
6c999cd123 r26236: Remove more uses of global_loadparm or specify loadparm_context explicitly.
(This used to be commit 5b29ef7c03d9ae76b0ca909e9f03a58e1bad3521)
2007-12-21 05:47:15 +01:00
Günther Deschner
33032276f5 r25603: More reformat.
Guenther
(This used to be commit 176614423ea57e853211c43b9853203243c6a978)
2007-12-21 05:42:48 +01:00
Jelmer Vernooij
cd962355ab r25000: Fix some more C++ compatibility warnings.
(This used to be commit 08bb1ef643ab906f1645cf6f32763dc73b1884e4)
2007-10-10 15:05:27 -05:00
Jelmer Vernooij
6cf69fee18 r24994: Fix some C++ warnings.
(This used to be commit 925abf74fa1ed5ae726bae8781ec549302786b39)
2007-10-10 15:05:26 -05:00
Jelmer Vernooij
2cd9215e77 r24725: Don't segfault if hive file can't be found
(This used to be commit 2daa8fa88dbc80a7c54c4b489b1037658d95755c)
2007-10-10 15:02:57 -05:00
Jelmer Vernooij
b409d4120f r24667: Finally merge the registry improvements that Wilco Baan Hofman and I 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-10 15:02:34 -05:00
Andrew Tridgell
0479a2f1cb r23792: convert Samba4 to GPLv3
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-10 14:59:12 -05:00
Jelmer Vernooij
4f0c0997ce r21834: Remove unnecessary includes
(This used to be commit 7d10e192caa60b816466a9deddf736afd2445080)
2007-10-10 14:49:34 -05:00
Andrew Tridgell
655b710204 r18584: found one of the fd leaks. The registry backend was using a
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-10 14:18:52 -05:00
Jelmer Vernooij
873749f218 r18168: Use {NULL} rather than POPT_TABLEEND, which is not always available.
(This used to be commit 8b622c5ded0732df0eaf9f6226f52a27b6eacd73)
2007-10-10 14:17:45 -05:00