Volker Lendecke
621f561a9c
lib;smbd: Fix the -Os build by initializing variables
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2021-08-06 17:22:30 +00:00
Volker Lendecke
ca078a7103
printing: talloc_stackframe() aborts on failure
...
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2021-04-19 18:18:31 +00:00
Volker Lendecke
c61316c946
printing: Straighten winreg_get_printer() slightly
...
Use the common done: exit for everything. This involves initializing
the handles on the stack, but this is good practice anyway.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2021-04-19 18:18:31 +00:00
Volker Lendecke
ea47224f65
printing: Make winreg_get_printer() a bit easier to understand
...
This is more lines, but the FILL_STRING macro did not really gain much
in clarity for me.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2021-04-19 18:18:31 +00:00
Volker Lendecke
43dcca632a
printing: Make winreg_get_printer() a bit easier to read
...
EMPTY_STRING does not gain clarity over "" for me.
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2021-04-19 18:18:31 +00:00
Björn Jacke
787d7756b9
cli_winreg_spoolss: handle also printer sharename
...
BUG: https://bugzilla.samba.org/show_bug.cgi?id=9771
Signed-off-by: Bjoern Jacke <bjacke@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2020-09-18 00:35:40 +00:00
Günther Deschner
dceb6dc386
s3-rpc_cli: add winreg_del_driver_package()
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2017-05-09 16:43:13 +02:00
Günther Deschner
7ced1c30fc
s3-rpc_cli: add winreg_get_driver_package()
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2017-05-09 16:43:13 +02:00
Günther Deschner
1494e94700
s3-rpc_cli: add winreg_add_driver_package()
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2017-05-09 16:43:13 +02:00
Günther Deschner
f22c5f1b9a
s3-rpc_cli: add winreg_add_core_driver()
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2017-05-09 16:43:13 +02:00
Günther Deschner
071faf59dc
s3-rpc_cli: add winreg_get_core_driver()
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
2017-05-09 16:43:13 +02:00
Günther Deschner
1f827a5cb4
werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source3/rpc_client/
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:22 +02:00
Günther Deschner
3e0b394536
werror: removed WERR_NOMEM
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:20 +02:00
Günther Deschner
f142b0aec5
werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/rpc_client/
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:18 +02:00
Günther Deschner
3af16e4abd
werror: replace WERR_BADFILE with WERR_FILE_NOT_FOUND in source3/rpc_client/
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-28 00:04:17 +02:00
Günther Deschner
85a309b5a3
s3-rpc_client: use spoolss_driver_version_to_qword in winreg_printer_ver_to_qword
...
Guenter
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
Autobuild-User(master): Uri Simchoni <uri@samba.org>
Autobuild-Date(master): Tue Sep 27 00:09:18 CEST 2016 on sn-devel-144
2016-09-27 00:09:18 +02:00
Günther Deschner
04bb54dbd8
s3-rpc_client: use spoolss_timestr_to_NTTIME in winreg_printer_date_to_NTTIME
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Uri Simchoni <uri@samba.org>
2016-09-26 20:24:18 +02:00
Günther Deschner
23a3abfe00
s3-rpc_client: add winreg_set_printserver_secdesc.
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:27 +02:00
Günther Deschner
302cb086a6
s3-rpc_client: add winreg_get_printserver_secdesc.
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2016-09-22 12:29:27 +02:00
Günther Deschner
a9a1a16cc8
s3-spoolss: fix winreg_printer_ver_to_qword
...
We were reporting the OS minor number as the driver version number in all
GetDriver/EnumDriver calls.
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-15 20:50:06 +02:00
Günther Deschner
88fc7a74b5
s3-rpc_client: make it more clear printer driver version is a QWORD not a DWORD.
...
Guenther
Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
2016-09-11 19:57:26 +02:00
Andreas Schneider
24fc5b46f2
s3-spoolss: Fix builtin forms order to match Windows again.
...
Thanks to mamachine@gmail.com .
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Sep 26 20:07:44 CEST 2012 on sn-devel-104
2012-09-26 20:07:43 +02:00
Volker Lendecke
9b0b60c67e
s3: Fix Coverity ID 242715 Uninitialized scalar variable
...
In an error path we are closing hive_hnd without opening it
2012-05-10 09:11:58 +02:00
Volker Lendecke
6d5bbb9a4b
s3: Fix Coverity ID 242716 Uninitialized scalar variable
...
In an error path we are closing key_hnd without opening it
2012-05-10 09:11:57 +02:00
Volker Lendecke
05e59739b3
s3: Fix Coverity ID 242691 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:57 +02:00
Volker Lendecke
8c2f826553
s3: Fix Coverity ID 242692 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
318cf16f7b
s3: Fix Coverity ID 242693 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
c0471d1d96
s3: Fix Coverity ID 242694 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
39577f1e99
s3: Fix Coverity ID 242695 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
600c4c9c45
s3: Fix Coverity ID 242696 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
995ea20fa2
s3: Fix Coverity ID 242697 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
3a8c4ab2ad
s3: Fix Coverity ID 242698 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
75271528f3
s3: Fix Coverity ID 242699 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
f9f4d705c2
s3: Fix Coverity ID 242700 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
a7b23cec6d
s3: Fix Coverity ID 242701 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
e0bc3767e3
s3: Fix Coverity ID 242702 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
11085bd93a
s3: Fix Coverity ID 242703 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
6c34e1a015
s3: Fix Coverity ID 242704 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
37b7095c8a
s3: Fix Coverity ID 242705 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Volker Lendecke
67e306703b
s3: Fix Coverity ID 242706 Dereference before null check
...
winreg_printer_openkey above already dereferences winreg_handle
2012-05-10 09:11:56 +02:00
Andreas Schneider
034489718c
s3-rpc_client: Add debug message for printer dataex errors.
2012-03-14 17:56:14 +01:00
David Disseldorp
ec094bf9ac
WERROR type variable being incorrectly checked with a NT_STATUS_IS_X
...
type macro.
2012-01-23 12:18:01 -08:00
Andreas Schneider
8831402596
s3-rpc_client: Fix memory context in winreg_enum_printer_dataex().
2011-07-27 08:49:58 +02:00
Andreas Schneider
5045281e17
s3-rpc_client: Close policy handles before creating defaults.
...
We reopen the hive and key so close them before reopen.
2011-07-27 08:49:58 +02:00
Andreas Schneider
f8afaa76f2
s3-rpc_client: Close the hive handle before we open it again.
2011-07-27 08:49:58 +02:00
Andreas Schneider
a0597b75e6
s3-rpc_client: Close hive if opening of the key fails.
2011-07-27 08:49:58 +02:00
Vicentiu Ciorbaru
e858ec6e92
s3-rpc_server: Removed no longer used functions.
...
Removed winreg_printer_delete_subkeys().
Removed winreg_printer_enumvalues().
Signed-off-by: Andreas Schneider <asn@samba.org>
Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Wed Jul 13 12:42:02 CEST 2011 on sn-devel-104
2011-07-13 12:42:02 +02:00
Vicentiu Ciorbaru
0b1ba88f22
s3-rpc_client: Migrate to dcerpc_winreg_delete_subkeys_recursive().
...
Functions now use dcerpc_winreg_delete_subkeys_recursive() instead of the more
specific printer function winreg_printer_delete_subkeys().
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-07-13 11:31:22 +02:00
Vicentiu Ciorbaru
a336cc44d9
s3-rpc_client: Migrate to dcerpc_winreg_enumvals() function.
...
The functions that called winreg_printer_enumvalues() function now use
dcerpc_winreg_enumvals().
Signed-off-by: Andreas Schneider <asn@samba.org>
2011-07-13 11:30:55 +02:00
Günther Deschner
f2be8378b9
s3-printing: add rpc_client/cli_winreg_spoolss.c
...
Guenther
Pair-Programmed-With: David Disseldorp <ddiss@suse.de>
2011-07-07 18:06:01 +02:00