summaryrefslogtreecommitdiff
path: root/source3/client/client.c
AgeCommit message (Collapse)AuthorFilesLines
2009-05-05Make cli_getattrE async.Jeremy Allison1-3/+3
Jeremy.
2009-04-30Cause cli_close to return an NTSTATUS.Jeremy Allison1-3/+3
Jeremy.
2009-04-30Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison1-18/+20
Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions. This is smaller than it looks, it just fixes a lot of old code. Next up, ensure all cli_XX functions return NTSTATUS. Jeremy.
2009-04-29Make cli_unlink async.Jeremy Allison1-2/+2
Jeremy.
2009-04-29More async calls in libsmb/clifile.cJeremy Allison1-1/+1
Jeremy.
2009-04-28Convert cli_rename to async.Jeremy Allison1-1/+1
Jeremy.
2009-04-28Convert cli_posix_unlink() and cli_posix_rmdir()Jeremy Allison1-2/+2
to async. First trans calls I've done. Jeremy.
2009-04-22Make dskattr async.Jeremy Allison1-1/+1
Jeremy.
2009-04-22Make cli_chkpath async.Jeremy Allison1-3/+3
Jeremy
2009-04-21Make rmdir async.Jeremy Allison1-1/+1
Jeremy.
2009-04-21Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison1-1/+1
Jeremy.
2009-04-20Remove smb_mkstemp() - libreplace will now provide a secure mkstemp() ifJelmer Vernooij1-1/+1
the system one is broken.
2009-03-17Remove the global "struct cm_cred_struct" and associated calls, makeJeremy Allison1-38/+40
callers pass in a struct user_auth_info * instead. This commit causes smbc_set_credentials() to print out a message telling callers to use smbc_set_credentials_with_fallback() instead, as smbc_set_credentials() has a broken API (no SMBCCTX * pointer). No more global variables used in the connection manager API for client dfs calls. Jeremy.
2009-03-12Remove the static "struct client_connection" mess which is part ofJeremy Allison1-11/+11
the problem that stops libsmbclient being thread safe. Subsidiary DFS connections are now hung off a list inside the cli_state struct. Much more to do in order to get libsmbclient to thread safety, but this is a good start. Jeremy.
2009-03-12Revert "s3:libsmb: add an option to cli_push to let the caller provide the ↵Stefan Metzmacher1-6/+4
buffers" This reverts commit 9579a6f193f570e4ce2af80f4aac7c2f25ae5b22. It's confusing to have a boolean to alter the behavior of cli_push and as the new feature isn't used yet I revert it. We can readd a extra function later. metze
2009-03-10s3:libsmb: add an option to cli_push to let the caller provide the buffersStefan Metzmacher1-4/+6
metze
2009-02-23More warning fixes for Solaris.Jeremy Allison1-3/+3
Jeremy.
2009-01-15s3: make better use of ccache by not including version.h in every C-file.Michael Adam1-1/+1
version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
2009-01-14Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison1-15/+8
the connections list and authentication structures to worry about. Jeremy
2009-01-14Remove another global from clidfs that is only used in client.c.Jeremy Allison1-6/+11
Jeremy.
2009-01-08Fix bug #6021 - smbclient du command does not recuse properlyJeremy Allison1-4/+4
Jeremy.
2009-01-05Fix bug 6014 -- mget shouldn't segfault without argumentsVolker Lendecke1-0/+5
Thanks to kevin.paulus@mtm.kuleuven.be for the bug report Volker
2009-01-02Remove cli_cm_set_dest_ss() - removes the global dest_ssJeremy Allison1-5/+8
from libsmb/clidfs.c. Keep the '-I<address>' option in smbclient working. The intent is to remove all globals from libsmb/clidfs.c. Jeremy.
2008-12-31Fix more asprintf and "ignoring return code" warnings from gcc 4.3.Jeremy Allison1-24/+36
Jeremy.
2008-12-19Make smbclient "put" use cli_pushVolker Lendecke1-37/+31
This should fill the TCP socket even beyond the smbclient io_bufsize, very much like smbclient "get" should do it since 3.2
2008-12-14Remove the global "cmdline_auth_info" from source3/lib/util.cVolker Lendecke1-14/+26
This involves changing all our clients, that's why it's so large.
2008-12-03s3: Change sockaddr util function names for consistencyTim Prouty1-1/+1
Also eliminates name conflicts with OneFS system libraries
2008-10-23Make use of a large buffer for smbclient put commandVolker Lendecke1-0/+3
2008-10-18Use separate make variables for libutil and libcrypto.Jelmer Vernooij1-3/+3
2008-10-14Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij1-8/+8
2008-10-03Fix the build farm. In this branch cli_echo returns NTSTATUS.Jeremy Allison1-1/+4
Jeremy
2008-10-03Correctly fix smbclient to terminate on eof from server.Jeremy Allison1-2/+11
Jeremy.
2008-09-15Fix display of POSIX ACLs.Timur1-2/+2
2008-09-11Use the given name, not the absolute pathname, when printing out ACL info.Jeremy Allison1-1/+1
Make this match the non-ACL case. Jeremy. (This used to be commit e695c1cc2b715afd713595e8daa77910d9f04138)
2008-09-11Fix bug #5751 cannot show ACLs on DFS reported by SATOH Fumiyasu ↵Jeremy Allison1-1/+1
<fumiyas@osstech.co.jp>. Fix for smbclient and libsmbclient. Jeremy. (This used to be commit dbd5d6b145528527a614c6207d81a6c955e57461)
2008-08-28Clarify usage of "force create mode".Jeremy Allison1-1/+1
Jeremy. (This used to be commit 1d252ffd313e0cd6fcb3d7cb2c99f2daf56728c1)
2008-08-28Add async smbecho client supportVolker Lendecke1-4/+6
(This used to be commit c1d645fbe39433541d8bfe6b818c855cee318dc5)
2008-07-20Refactoring: Change calling conventions for cli_rpc_pipe_open_noauthVolker Lendecke1-2/+3
Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS (This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
2008-06-17Fix a brown paper bag segfault in clitarVolker Lendecke1-1/+1
Thanks to "No Body is Perfect" from gmail, whoever that is :-) Volker (cherry picked from commit 679d8dfa390601f777bfb43c02cd921eae5edcf4) (This used to be commit b8e1d62b8e8f724b855c8ab9801abee0b2791e36)
2008-05-28Security fix for CVE-2008-1105: Boundary failure when parsing SMB responsesJeremy Allison1-1/+1
can result in a buffer overrun. Jeremy. (This used to be commit 23b825e9d2c74c5b940cf4d3aa56c18692259972)
2008-05-05Fix client authentication with -P switch in client tools (Bug 5435).Günther Deschner1-0/+5
Guenther (This used to be commit d077ef64cd1d9bbaeb936566c2c70da508de829f)
2008-04-20Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_structVolker Lendecke1-2/+2
(This used to be commit 99fc3283c4ecc791f5a242bd1983b4352ce3e6cf)
2008-04-20Add "desthost" to rpc_pipe_clientVolker Lendecke1-1/+1
This reduces the dependency on cli_state (This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
2008-04-17Fix the problem when -L is used with IPv6 addresses. Don't try toJeremy Allison1-0/+8
connect on port 139 with IPv6. Found by David Holder @ Erion. Karolin please merge to 3.2-stable. Jeremy. (This used to be commit c003e66ff10b23bb30aef0071ba7a3ae9579174e)
2008-03-28More ssize_t->SMB_OFF_TVolker Lendecke1-1/+1
(This used to be commit 8dd6458049d1b9d6849730ac19c39b049a68f302)
2008-03-17Coverity fixesMarc VanHeyningen1-1/+4
(This used to be commit 3fc85d22590550f0539215d020e4411bf5b14363)
2008-03-15Fix Coverity ID 563Volker Lendecke1-5/+1
dirmask is always set here, we've dereferenced it before anyway (This used to be commit e6787aa133a1b241987319486c3bc46ac6ad41af)
2008-03-10Use rpccli_srvsvc_NetShareEnumAll in smbclient.Günther Deschner1-15/+21
Guenther (This used to be commit 1121633652ffb77dce8df9cc91b7dfc2d55fd348)
2008-03-06Eliminate global variable in_client and a plethora of extern declarations.Derrell Lipman1-2/+1
Derrell (This used to be commit b7f34e7ef2907b498a0645ce68f2773ed7d60cdc)
2008-03-06Change default bufsize to 512kVolker Lendecke1-1/+1
I did not do any scientific tests, but the dummy test on my laptop against a w2k3 vmware shows that in this specific situation going beyond 512k seems not to gain anything anymore. smb: \> iosize 64512 iosize is now 64512 smb: \> lcd /dev smb: \> get random null getting file \random of size 104857600 as null (33453,1 kb/s) (average 19718,5 kb/s) smb: \> get random null getting file \random of size 104857600 as null (34236,0 kb/s) (average 20509,1 kb/s) smb: \> iosize 524288 iosize is now 524288 smb: \> get random null getting file \random of size 104857600 as null (49042,1 kb/s) (average 22521,9 kb/s) smb: \> get random null getting file \random of size 104857600 as null (49420,8 kb/s) (average 23432,9 kb/s) smb: \> iosize 1048576 iosize is now 1048576 smb: \> get random null getting file \random of size 104857600 as null (49420,8 kb/s) (average 24284,2 kb/s) smb: \> get random null getting file \random of size 104857600 as null (49136,3 kb/s) (average 25076,9 kb/s) (This used to be commit 1bcfef6a9093aa873550a263dc142c8a3f5edffd)