summaryrefslogtreecommitdiff
path: root/source3/client/client.c
AgeCommit message (Collapse)AuthorFilesLines
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)
2008-03-06Use io_bufsize as window size in smbclient get commandVolker Lendecke1-1/+1
(This used to be commit e602f06cbba852a7eacd15b2511ef2571a95cc80)
2008-03-06Add async cli_pull supportVolker Lendecke1-29/+16
This is the big (and potentially controversial) one. It took a phone call to explain to metze what is going on inside cli_pull_read_done, but I would really like everybody to understand this function. It is a very good and reasonably complex example of async programming. If we want more asynchronism in s3, this is what we will have to deal with :-) Make use of it in the smbclient "get" command. Volker (This used to be commit 76f9b360ee1d973630d82d401eeddce858189301)
2008-02-08Fix bug #5247 "Wildcard expansion in mget is broken"Jeremy Allison1-71/+38
for 3.2. Jeremy. (This used to be commit 69aa0766203cb88b8b07e364f7148ade809f5ce6)
2008-02-02Convert receive_smb_raw to NTSTATUSVolker Lendecke1-3/+24
(This used to be commit ba771bd858602452a9e58c3aab1336f2ac8a25ef)
2008-01-23strtok -> strtok_rVolker Lendecke1-2/+3
(This used to be commit fd34ce437057bb34cdc37f4b066e424000d36789)
2008-01-18Fix error message for new allinfo command.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 3a1bcbfa7ca2b55265eb486e2b7c740e04775698)
2008-01-18Add the "allinfo" command to smbclientVolker Lendecke1-0/+88
Modeled after the Samba4 allinfo command (This used to be commit 3fa0cf3fe5f819f6e76df6f7cef3bb4e1c307a52)
2008-01-09Correct comment. Default debug level of smbclient is 1, not 0.Karolin Seeger1-1/+1
(This used to be commit 9c81125e6d3df49806e1c0b39409ffac8e3a0fd1)
2008-01-05Use the common -e option not the custom one.Jeremy Allison1-1/+1
Jeremy. (This used to be commit ef1bbcdfb98da185c07005dd7810039f99f0685f)
2008-01-04Merge branch 'v3-2-test' of ssh://jra@git.samba.org/data/git/samba into ↵Jeremy Allison1-2/+8
v3-2-test (This used to be commit 3a45f62310faf63cd6864d2cb10f941492eda818)
2008-01-04Fix idle client reading keepalive.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 4ce0bf785635371e2923217b1e0b7f30986c25bb)
2008-01-04Refactor the crypto code after a very helpful conversationJeremy Allison1-2/+8
with Volker. Mostly making sure we have data on the incoming packet type, not stored in the smb header. Jeremy. (This used to be commit c4e5a505043965eec77b5bb9bc60957e8f3b97c8)
2007-12-30We may use 127k read/write for encrypted connections.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 656c9d0844e3d9d87ae768fe5a5538759b94d953)
2007-12-29Fix error message.Jeremy Allison1-1/+1
Jeremy. (This used to be commit a0494b115b644c1c4afa50442c46a54779687571)
2007-12-29Added -e, --encrypt option to smbclient that immediatelyJeremy Allison1-10/+35
forces encrypted smb after initial connect. Will document for 3.2 official release. Jeremy. (This used to be commit f02bf419282419950471deae74c4a6fe1543ed26)
2007-12-27Add the capability to set "smb encrypt = required"Jeremy Allison1-2/+15
on a share (or global) and have the server reply with ACCESS_DENIED for all non-encrypted traffic (except that used to query encryption requirements and set encryption state). Jeremy. (This used to be commit d241bfa57729bb934ada6beabf842a2ca7b4f8a2)
2007-12-26Add SMB encryption. Still fixing client decrypt butJeremy Allison1-0/+43
negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)