Günther Deschner
441d607589
s3-services: include svcctl.h where needed.
...
Guenther
2010-08-06 15:43:37 +02:00
Michael Adam
0fe1ff99a1
s3:registry: move reg_objects.h to registry/ and use it only where needed
...
Every place outside of registry/ where this is used, should probably
be changed to use pure reg_api.c code.
2010-05-25 10:35:31 +02:00
Michael Adam
1be8f5fba4
s3:services_db: use regval_ctr_init() instead of direct allocation
2010-05-25 10:35:29 +02:00
Michael Adam
b94267aa3f
s3:registry: extraxt the reg_dispatcher prototypes into their own header.
...
And use them only where needed.
2010-05-25 10:35:26 +02:00
Michael Adam
9ccf66379a
s3:registry: adapt callers of regval_ctr_addvalue to uint8 * instead of char *
2010-05-25 10:35:25 +02:00
Michael Adam
a4efda959a
s3:registry: extract the reg_util_legacy prototypes into their own header.
...
And use them only where necessary.
2010-05-25 10:35:24 +02:00
Günther Deschner
ba1befd365
s3-services: move services.h closer to services implementation.
...
Guenther
2010-05-20 13:39:46 +02:00
Günther Deschner
7f6bb48bdf
s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".
...
Guenther
2010-05-18 12:30:12 +02:00
Günther Deschner
8951c8301a
s3-secdesc: remove "typedef struct security_acl SEC_ACL".
...
Guenther
2010-05-18 12:30:12 +02:00
Günther Deschner
a8b01d1f3b
s3-secdesc: remove "typedef struct security_ace SEC_ACE".
...
Guenther
2010-05-18 12:30:11 +02:00
Jelmer Vernooij
b8268cf7b0
s3: Remove use of iconv_convenience.
2010-05-18 11:45:31 +02:00
Günther Deschner
fe31b67d5e
s3-registry: only include registry headers when really needed.
...
Guenther
2010-05-18 01:15:38 +02:00
Günther Deschner
657fd0be1d
s3-services: move services.h to where it is actually used.
...
Guenther
2010-05-18 00:44:27 +02:00
Günther Deschner
63b111bd32
s3: add iconv_convenience handle to pull/push sz helpers.
...
Guenther
2010-04-09 18:33:45 +02:00
Günther Deschner
ad836c4d48
s3-registry: use pull_reg_sz() where appropriate.
...
(and move away from rpcstr_pull and rpcstr_pull_talloc).
Guenther
2009-10-01 11:40:30 +02:00
Günther Deschner
1b0f3b7e3a
s3-registry: use regval_ctr_addvalue_sz().
...
Greatly simplifies and cleanes up the code.
Guenther
2009-09-30 00:30:12 +02:00
Günther Deschner
2c11b73391
s3-registry: use push_reg_sz().
...
Guenther
2009-09-30 00:29:49 +02:00
Michael Adam
cec8428747
s3:registry: replace typedef REGISTRY_KEY by struct registry_key_handle
...
Michael
2009-04-27 11:21:04 +02:00
Michael Adam
8185d31fb0
s3:registry: replace typedef REGISTRY_VALUE by struct regval_blob
...
Michael
2009-04-27 11:21:03 +02:00
Michael Adam
221151a2a2
s3:registry: replace typedef REGVAL_CTR by struct regval_ctr.
...
This paves the way for hiding the typedef and the implementation
from the surface.
Michael
2009-04-27 11:21:02 +02:00
Günther Deschner
16b2f4b55a
s3-svcctl: indicate that the spooler is already running if it does.
...
Guenther
2009-04-24 13:38:43 +02:00
Michael Adam
b384d0d49d
s3:services_db: use regsubkey_ctr_init() instead of using talloc directly
...
Michael
2009-02-26 13:22:53 +01:00
Michael Adam
58fc61217d
s3:registry: replace typedef "REGSUBKEY_CTR" by "struct regsubkey_ctr"
...
This paves the way for hiding the typedef and the implementation from the
surface.
Michael
2009-02-26 13:22:51 +01:00
Jeremy Allison
2033b44c3f
More warning fixes for Solaris.
...
Jeremy.
2009-02-23 15:44:34 -08:00
Günther Deschner
d704efc536
s3-svcctl: use security descriptor marshall helper in svcctl_set_secdesc().
...
Guenther
2009-02-05 12:15:13 +01:00
Günther Deschner
abc2843481
s3-svcctl: use pidl defined constants in services implementation.
...
Guenther
2009-01-09 16:32:06 +01:00
Günther Deschner
50721b485f
s3-svcctl: use pidl based struct SERVICE_STATUS.
...
Guenther
2009-01-08 13:24:22 +01:00
Günther Deschner
cbc2c9059f
s3-svcctl: remove some more redundant headers.
...
Guenther
2009-01-08 13:24:22 +01:00
Jelmer Vernooij
ddcab787c4
Rename dos_errstr() to win_errstr() for consistency with Samba 4.
2008-11-01 17:19:26 +01:00
Jeremy Allison
e5692d4cbe
Remove SEC_ACCESS. It's a uint32_t.
...
Jeremy.
2008-10-09 09:49:03 -07:00
Jeremy Allison
dc3a0acdaa
Ensure all pointers are initialized. Without this we can crash when looking up a non-existant uid.
...
Jeremy.
2008-09-17 12:02:13 -07:00
Michael Adam
8829b424fe
svcctl: use MODULESDIR instead of LIBDIR for the svcctl script directory.
...
Michael
(This used to be commit bb19634138cfd1f527c44e16a44aa21ebee50c1c)
2008-08-15 23:19:58 +02:00
Volker Lendecke
2b7fca9e79
Revert "Fix a memleak in svcctl_init_keys()"
...
This reverts commit b1afb31f3cadd4749bf6e3eb5d8935588bf8ebfc.
This one is very strange: I need to investigate why valgrind showed it as
leaking, and why in my initial tests this did not fail.
(cherry picked from commit 24730f5981efb920811e7929a9483bd72bb0984c)
(This used to be commit b1e8e5d173cdaa3fb9c1fb1d9aacf8e665bc5d61)
2008-06-18 16:31:35 +02:00
Volker Lendecke
04e697891b
Fix a memleak in svcctl_init_keys()
...
(This used to be commit 675bb53398ba29c53d2dcf3c7122cf4770c2f938)
2008-06-17 16:09:22 +02:00
Marc VanHeyningen
e06aa46b9f
Coverity fixes
...
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
2008-03-17 20:52:25 +01:00
Michael Adam
8ba088516a
Fix segfault in svcctl_get_secdesc(): prevent premature TALLOC_FREE.
...
This crash was triggered by (e.g.) net rpc service status.
This patch prevents premature freeing of memory and creates a
common exit point to the function.
Michael
(This used to be commit f1fb9fd6f14fc53629871cbe4b8558ad5acc14f0)
2008-02-18 17:41:19 +01:00
Michael Adam
5cd707f82c
Add a check for success of fetch_reg_values().
...
Michael
(This used to be commit ba69097f37086537e6b2606fceeb874f6d3e4e1c)
2008-02-18 17:41:19 +01:00
Michael Adam
1638941ba2
Fix a comment typo.
...
Michael
(This used to be commit 00e2dd36b38fcf92d76a0e79860cf9ca6a3d027e)
2008-02-18 17:41:19 +01:00
Michael Adam
59c0aa3afd
Fix two debug messages.
...
Michael
(This used to be commit 35e23368dd4240a3c907b4cee882f51119032527)
2008-01-21 22:49:45 +01:00
Volker Lendecke
99b86e4a26
Some C++ fixes
...
(This used to be commit 5c392c4c6e277a24d0d477902dc7856b2b46ee53)
2007-12-21 09:58:21 +01:00
Jeremy Allison
e3efe7cd7e
More static fstring elimination.
...
Jeremy.
(This used to be commit b4dfec09e89428cac9b21a94ce4d24e60d4a54f4)
2007-12-17 18:00:43 -08:00
Jeremy Allison
7faee02d0d
Remove the char[1024] strings from dynconfig. Replace
...
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2106015b3a8b659e818bdb15ad94b05)
2007-12-10 11:30:37 -08:00
Jeremy Allison
a0f7c3f481
Remove pstring from services/*.c
...
Jeremy.
(This used to be commit 33aa866195e232f878230bc62e97e1484996afcc)
2007-11-20 17:57:47 -08:00
Jeremy Allison
30191d1a57
RIP BOOL. Convert BOOL -> bool. I found a few interesting
...
bugs in various places whilst doing this (places that assumed
BOOL == int). I also need to fix the Samba4 pidl generation
(next checkin).
Jeremy.
(This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-18 17:40:25 -07:00
Gerald (Jerry) Carter
e5a951325a
[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.
...
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10 15:34:30 -05:00
Volker Lendecke
f708132de7
r25561: Make use of [un]marshall_sec_desc
...
Minor cleanup only
(This used to be commit 4dc4364b68b6b68ae0951a84475e2f9ea8cb1f8c)
2007-10-10 12:31:13 -05:00
Volker Lendecke
ff0947fbed
r24949: Remove some static buffers
...
(This used to be commit df648d47ff3c4e24f439fda839653bda98323100)
2007-10-10 12:30:29 -05:00
Herb Lewis
c7b9f06647
r24290: fix debug statments to match function name
...
(This used to be commit 5ee0bfde50645b822cefefe90bc9168faeeb34ff)
2007-10-10 12:29:25 -05:00
Andrew Tridgell
153cfb9c83
r23801: The FSF has moved around a lot. This fixes their Mass Ave address.
...
(This used to be commit 87c91e4362c51819032bfbebbb273c52e203b227)
2007-10-10 12:28:27 -05:00
Jeremy Allison
d824b98f80
r23779: Change from v2 or later to v3 or later.
...
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10 12:28:20 -05:00