summaryrefslogtreecommitdiffstats
path: root/source3/client
Commit message (Collapse)AuthorAgeFilesLines
* Fix smbclient/tarmode panic on connecting to Windows 2000 clients.Salvador I. Gonzalez2012-08-131-8/+19
| | | | | | | | | | | 'Freed frame ../source3/libsmb/clilist.c:934, expected ../source3/client/clitar.c:821' Cause: (strequal(finfo->name,"..") || strequal(finfo->name,".")) evaluates to true, do_tar returns without freeing ctx Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Aug 13 23:12:50 CEST 2012 on sn-devel-104
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-092-3/+8
|
* s3-param: Make lp_name_resolve_order() return a listAndrew Bartlett2012-07-191-1/+1
| | | | | | | | | This allows this parameter, one of the few with differing declarations between the loadparm systems, to be brought into common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-181-1/+1
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/client/client.c: fix stackframe leak.Rusty Russell2012-07-181-13/+7
| | | | | | | do_message_op() doesn't free its stackframe in various paths. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3:libsmb: get rid of cli_state_protocolLuk Claes2012-05-281-1/+1
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_remote_nameLuk Claes2012-05-281-1/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* Fix bug #8922.Jeremy Allison2012-05-111-1/+1
| | | | | | | | | Looking at the do_list status returns was historically ignored, allowing tar to continue after NT_STATUS_ACCESS_DENIED. Return to this state. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 11 14:55:53 CEST 2012 on sn-devel-104
* s3: Fix smbclient notify against WindowsVolker Lendecke2012-04-161-1/+1
| | | | | | | We need READ_DATA Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Apr 16 21:27:54 CEST 2012 on sn-devel-104
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-062-6/+6
| | | | | | | | | Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
* build: Remove SMB_STRUCT_DIR defineAndrew Bartlett2012-04-051-1/+1
|
* build: Remove sys_closedir wrapperAndrew Bartlett2012-04-051-3/+3
|
* build: Remove sys_opendir wrapperAndrew Bartlett2012-04-051-1/+1
|
* build: Remove sys_open wrapperAndrew Bartlett2012-04-051-2/+2
|
* build: Remove sys_creat wrapperAndrew Bartlett2012-04-051-2/+2
|
* build: Remove sys_lseek wrapperAndrew Bartlett2012-04-051-1/+1
|
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-241-2/+2
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
* s3:client correct a wordingChristian Ambach2012-03-221-1/+1
|
* s3: Add "notify" cmd to smbclientVolker Lendecke2012-03-221-0/+57
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 22 13:51:50 CET 2012 on sn-devel-104
* Rename obscure defined constants.Christopher R. Hertel (crh)2012-02-161-4/+5
| | | | | | | | | | | | | | | Replaced the undescriptive SMB_PORT1 and SMB_PORT2 defined constants with the slightly more descriptive names NBT_SMB_PORT and TCP_SMB_PORT. Also replaced several hard-coded references to the well-known port numbers (139 and 445, respectively) as appropriate. Small changes to clarify some comments regarding the two transport types. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Feb 16 08:29:41 CET 2012 on sn-devel-104
* s3:client: ignore SMBecho errors (the server may not support it) (bug #8139)Stefan Metzmacher2012-01-311-3/+7
| | | | metze
* Revert "Fix bug #8139 - smbclient fails if server does not support Echo ↵Stefan Metzmacher2012-01-311-5/+1
| | | | | | | | | | | request." This reverts commit 1fdc96ecaff8ca12e9aa0082527468ad4242a8a9. This is wrong in master as the error codes are different compared to 3.5.x. The correct way to handle this is to call cli_state_is_connected(). metze
* Fix bug #8139 - smbclient fails if server does not support Echo request.Jeremy Allison2012-01-311-1/+5
| | | | | | | Based on work by Matthias Scheler <tron@NetBSD.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Jan 31 00:47:19 CET 2012 on sn-devel-104
* Introduce dump_data_fileVolker Lendecke2012-01-251-7/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Jan 25 11:57:18 CET 2012 on sn-devel-104
* s3-cli: fix bug 563, >8GB tar on BE machinesMasafumi Nakayama2012-01-031-5/+17
| | | | | | | | | Borrows on existing patches proposed by Craig Barratt and Brad Ellis. Signed-off-by: David Disseldorp <ddiss@suse.de> Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Tue Jan 3 18:31:28 CET 2012 on sn-devel-104
* Move the callers that need to use the new cli_open() back to callingJeremy Allison2011-12-034-123/+6
| | | | it from cli_openx().
* Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()Jeremy Allison2011-12-032-2/+2
| | | | with a call that uses NTCreateX in preference to OpenAndX.
* Ensure we map our own Samba return of ERRSRV, ERRunknownsmbJeremy Allison2011-12-021-0/+3
| | | | on an unknown SMB request to NT_STATUS_NOT_IMPLEMENTED.
* Convert smbclient to using NtCreateX by preference, fall back to openX onJeremy Allison2011-12-023-5/+119
| | | | 'not implemented' or similar error.
* Add the "backup" toggle command to smbclient. In order for this to beJeremy Allison2011-12-021-0/+14
| | | | | | | | | really useful we need to change to using NTCreateX opens by default in cli_open() and fall back to old OpenX calls instead of doing it the other way around. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Dec 2 00:23:13 CET 2011 on sn-devel-104
* s3:client: make use of cli_tree_connect()Stefan Metzmacher2011-11-242-3/+3
| | | | metze
* s3:client: s/Undefined/SMB_SIGNING_DEFAULT/Stefan Metzmacher2011-11-032-2/+2
| | | | metze
* Bug 7551: Return error of cli_push when 'put - /some/file' is usedBram2011-09-291-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Sep 29 23:47:02 CEST 2011 on sn-devel-104
* s3:clitar: remove unused/not existing extern variablesStefan Metzmacher2011-09-131-3/+0
| | | | metze
* s3:libsmb: pass CLI_FULL_CONNECTION_* flags via cli_connect_nb()Stefan Metzmacher2011-09-081-1/+1
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 8 10:21:50 CEST 2011 on sn-devel-104
* s3:client: make use of cli_state_protocol()Stefan Metzmacher2011-08-021-1/+1
| | | | metze
* s3:smbspool: use lp_load_client()Michael Adam2011-07-281-3/+1
|
* s3:smbclient: use lp_load_client()Michael Adam2011-07-281-3/+1
|
* s3-client/client.c: replace cli_query_secdesc_old()Björn Baumbach2011-07-231-5/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: rename cli_query_secdesc() to cli_query_secdesc_old()Björn Baumbach2011-07-231-1/+1
| | | | | | Will introduce new cli_query_secdesc() function Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-client/clitar.c: replace cli_read_old() with cli_read()Björn Baumbach2011-07-231-5/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:client: make use of cli_state_remote_name()Stefan Metzmacher2011-07-221-1/+1
| | | | metze
* s3:smbclient: print nt status code when smb echo failsMichael Adam2011-07-221-2/+2
|
* s3:smbclient: add a "tdis" command to view and change the tree id (tid).Michael Adam2011-07-221-0/+25
| | | | | This low level command can be used to switch between tree connects in one session.
* s3:smbclient: add a "tdis" command to do a tree disconnect (close a ↵Michael Adam2011-07-221-0/+19
| | | | connection to a share)
* s3:smbclient: add a "tcon" command to do a tree connect (connect to a share)Michael Adam2011-07-221-0/+34
|
* s3:smbclient: add "logoff" command to close the sessionMichael Adam2011-07-221-0/+19
|
* s3:libsmb: move cli->vuid to cli->smb1.uid and hide it behind ↵Stefan Metzmacher2011-07-211-3/+4
| | | | | | cli_state_[g|s]et_uid() metze
* s3-libsmb: replace cli_read() with cli_read_old()Björn Baumbach2011-07-201-1/+1
| | | | | | Will introduce new cli_read() function. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison2011-07-191-1/+1
| | | | | | | | | | Remove int toupper_ascii(int c); int tolower_ascii(int c); int isupper_ascii(int c); int islower_ascii(int c); and replace with their _m equivalents, as they are identical.