Günther Deschner
30e18aadc3
s3-rpcclient: use rpccli_spoolss_GetPrinterDataEx.
...
Guenther
2009-02-12 22:51:29 +01:00
Volker Lendecke
0b6f21841e
Only assign argv[1] after the argc check, thanks Tim!
2009-02-11 09:35:15 +01:00
Volker Lendecke
df42719ca3
Fix an uninitialized variable
2009-02-11 08:42:50 +01:00
Günther Deschner
473c558937
s3-rpcclient: use one macro for all printername formats.
...
Guenther
2009-02-10 23:59:24 +01:00
Günther Deschner
9d05e91ec0
s3-rpcclient: use rpccli_spoolss_openprinter_ex helper.
...
Guenther
2009-02-10 11:05:02 +01:00
Günther Deschner
84a0076c4b
s3-rpcclient: remove a pointless fstring.
...
Guenther
2009-02-09 19:07:34 +01:00
Günther Deschner
438af255c6
s3-rpcclient: use srv_name_slash instead of formating servername again and again.
...
Guenther
2009-02-09 19:07:34 +01:00
Günther Deschner
dfa559145c
s3-spoolss: remove whitespace in printing code.
...
Guenther
2009-02-09 12:42:42 +01:00
Günther Deschner
cae89f5250
s3-rpcclient: use rpccli_spoolss_DeletePrinterDriverEx.
...
Guenther
2009-02-09 12:34:03 +01:00
Günther Deschner
2a74f8bdbb
s3-rpcclient: use rpccli_spoolss_DeletePrinterDriver.
...
Guenther
2009-02-09 12:34:03 +01:00
Günther Deschner
373a4d829d
s3-rpcclient: use rpccli_spoolss_GetForm.
...
Guenther
2009-02-09 10:42:54 +01:00
Günther Deschner
c7d572a76f
s3-rpcclient: use rpccli_spoolss_SetForm.
...
Guenther
2009-02-09 10:42:26 +01:00
Günther Deschner
5234f5e433
s3-spoolss: use rpccli_spoolss_AddForm in net and rpcclient.
...
Guenther
2009-02-09 10:42:04 +01:00
Günther Deschner
45f142fe29
s3-rpcclient: fix getform command asprintf return code.
...
Guenther
2009-02-09 10:38:30 +01:00
Günther Deschner
b8cd20cd5c
s3-spoolss: use rpccli_spoolss_DeleteForm.
...
Guenther
2009-02-07 01:52:28 +01:00
Günther Deschner
0bd5698dab
s3-spoolss: use rpccli_spoolss_ClosePrinter.
...
Guenther
2009-02-06 18:58:34 +01:00
Jeremy Allison
07e0094365
Fix all warnings in source3 with gcc4.3.
...
Jeremy.
2008-12-31 18:06:57 -08:00
Volker Lendecke
daeb3a190d
Remove the global "cmdline_auth_info" from source3/lib/util.c
...
This involves changing all our clients, that's why it's so large.
2008-12-14 14:00:43 +01:00
Jelmer Vernooij
ddcab787c4
Rename dos_errstr() to win_errstr() for consistency with Samba 4.
2008-11-01 17:19:26 +01:00
Jelmer Vernooij
f3f9446ec1
Rename hex_encode to hex_encode_talloc,for consistency with samba 4 and heimdal.
2008-10-18 16:16:57 +02:00
Volker Lendecke
82b5f54f96
Refactoring: rpcclient uses ndr_syntax_id instead of pipe_idx
...
(This used to be commit 85db87c451dacf80e9575c04e9e08c625b3f1199)
2008-07-21 14:36:27 +02:00
Volker Lendecke
1335da2a7c
Refactoring: Change calling conventions for cli_rpc_pipe_open_noauth
...
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS
(This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
2008-07-20 17:37:11 +02:00
Volker Lendecke
5a63e1dcb6
Fix a segfault in rpcclient adddriver
...
(cherry picked from commit d4b5a9d67389578f531527b339f6feead62f082d)
(This used to be commit 8573032877317fe1f5c69e9ced5b19a33d8aefb0)
2008-06-26 15:35:56 +02:00
Karolin Seeger
98ed31a107
Fix typo.
...
arguements -> arguments
Karolin
(This used to be commit 16b5b772d216d10613d433884634b1215efbd6e6)
2008-06-17 09:46:17 +02:00
Volker Lendecke
862d7e32b9
Move user/domain from rpc_pipe_client to cli_pipe_auth_data
...
(This used to be commit 42de50d2cd43e760d776694f7b5f003ba51d7f84)
2008-04-25 11:12:50 +02:00
Volker Lendecke
b9cc055062
Introduce rpc_pipe_np_smb_conn()
...
This abstracts away all references to rpc_pipe_client->cli, the only reference
is now in cli_pipe.c.
(This used to be commit c56e1c08cef107ff33a34346ceeca3475a102b19)
2008-04-20 14:08:16 +02:00
Volker Lendecke
2a2188591b
Add "desthost" to rpc_pipe_client
...
This reduces the dependency on cli_state
(This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
2008-04-20 00:13:09 +02:00
Michael Adam
9644b6cb50
Add a talloc context parameter to current_timestring() to fix memleaks.
...
current_timestring used to return a string talloced to talloc_tos().
When called by DEBUG from a TALLOC_FREE, this produced messages
"no talloc stackframe around, leaking memory". For example when
used from net conf.
This also adds a temporary talloc context to alloc_sub_basic().
For this purpose, the exit strategy is slightly altered: a common
exit point is used for success and failure.
Michael
(This used to be commit 16b5800d4e3a8b88bac67b2550d14e0aaaa302a9)
2008-03-28 16:34:51 +01:00
Volker Lendecke
130b474e47
Fix bug 5338 -- thanks to Yuya Katayama <yuya999@gmail.com>
...
(This used to be commit 5ec2dbd144a3bbfdb14deafd158bad48b2d41ca4)
2008-03-19 15:05:30 +01:00
Volker Lendecke
6b5ce93d15
Fix bug 5421 -- thanks to MJ Anthony
...
(This used to be commit a3d0450e0a054bdb8997db544a7efc8aa67f074d)
2008-02-05 10:34:00 +01:00
Volker Lendecke
b679dda6c9
Fix bogus uninitialized variable warnings
...
(This used to be commit 71d6580c837adcc2cddcdff561f6fb09701501ee)
2008-01-25 21:20:39 +01:00
Volker Lendecke
587cf54c61
strtok -> strtok_r
...
(This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
2008-01-23 15:08:04 +01:00
Jeremy Allison
e2ae63bcf7
Make all the tools use the proper accessor functions.
...
Jeremy.
(This used to be commit 6d61bb87975839adb25c304e5e5041f91b12d236)
2007-12-06 18:58:01 -08:00
Jeremy Allison
1b92ea5559
Remove pstrings from client/client.c by doing a large rewrite.
...
Mostly compiles....
Jeremy.
(This used to be commit c87f3eba9aa52f4ab25d77e2167262bf5c43b1a6)
2007-12-06 17:16:33 -08:00
Volker Lendecke
f4e4df66e7
Fix some C++ warnings
...
I think were are actually bugs.
(This used to be commit 1be19f07889ae09f79030f1ff8f2cf5e9a3d9dc5)
2007-12-01 10:43:11 -08:00
Jeremy Allison
c049b8157d
More trivial pstring removal.
...
Jeremy.
(This used to be commit bac3bb2f6e9e15b3a9a6a6511c484f8509918ca1)
2007-11-20 15:31:37 -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
Andrew Tridgell
5e54558c6d
r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
...
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10 12:28:22 -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
Jeremy Allison
79de0ad946
r22588: Make all uses of TALLOC_MEMDUP consistent.
...
Jeremy.
(This used to be commit 8ad13718af0ba1fcb10a6f1631b1ed3cb8d11175)
2007-10-10 12:19:48 -05:00
Jeremy Allison
7f8d89bc54
r22062: Fix the parsing of info level 3. Flags is not a flags
...
field, but an offset. Fixed 64-bit display of ACLs on
printers.
Jeremy.
(This used to be commit 0c8949ff5d742dbe59f2af0f57a289f238e3592c)
2007-10-10 12:19:07 -05:00
Volker Lendecke
ecf90c495e
r19991: Sorry for this 2000-liner...
...
The main thing here is a rewrite of srv_winreg_nt.c. The core functionality
has moved to registry/reg_api.c which is then usable by the rest of Samba as
well.
On that way it fixes creating keys with more than one element in the
path. This did not work before.
Two things that sneaked in (sorry :-) is the change of some routines from
NTSTATUS to WERROR the removed "parent" argument to regkey_open_internal.
Volker
(This used to be commit fea52801de8c7b85c578d200c599475680c5339f)
2007-10-10 12:16:18 -05:00
Volker Lendecke
202f63e476
r19811: Decode REG_MULTI_SZ and REG_BINARY
...
(This used to be commit 679330175185f8504bb5968339dcc7cb20d9140c)
2007-10-10 12:15:57 -05:00
Volker Lendecke
e23781b3b3
r17316: More C++ warnings -- 456 left
...
(This used to be commit 1e4ee728df7eeafc1b4d533240acb032f73b4f5c)
2007-10-10 11:38:25 -05:00
Jeremy Allison
fbdcf2663b
r16945: Sync trunk -> 3.0 for 3.0.24 code. Still need
...
to do the upper layer directories but this is what
everyone is waiting for....
Jeremy.
(This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10 11:19:14 -05:00
Jeremy Allison
3c9a5c7b58
r16654: Fix bug #3893 reported by jason@ncac.gwu.edu.
...
Jeremy.
(This used to be commit 787539489897e79d43eb1833db6f5969b130c934)
2007-10-10 11:19:06 -05:00
Volker Lendecke
8961048d24
r16339: Fix Klocwork ID
...
277 278 (cmd_*)
485 487 488 (ldap.c)
Volker
(This used to be commit 5b1eba76b3ec5cb9b896a9a5641b4d83bdbdd4cf)
2007-10-10 11:17:36 -05:00
Jeremy Allison
4f53350b43
r14833: Fix resource leak on error code path. Coverity #280 .
...
Jeremy.
(This used to be commit b985bdcb87eeb70725f2d625a4ea5ec39bda1b94)
2007-10-10 11:15:50 -05:00
Gerald Carter
fb5362c069
r13571: Replace all calls to talloc_free() with thye TALLOC_FREE()
...
macro which sets the freed pointer to NULL.
(This used to be commit b65be8874a2efe5a4b167448960a4fcf6bd995e2)
2007-10-10 11:10:14 -05:00
Jeremy Allison
d6a68f8739
r11454: Last 2 uninitialized warnings.
...
Jeremy.
(This used to be commit 5f10368ff0f5eae646533280a444dc091d732c0d)
2007-10-10 11:05:17 -05:00