summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2008-12-16Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Kai Blin1-683/+24
segmentation fault (with NASBASIC server).
2008-12-16commit b520befe6f51644d20434add9864d7a2fa30aa2eSATOH Fumiyasu1-6/+4
Author: SATOH Fumiyasu <fumiyas@osstech.co.jp> Date: Wed Dec 17 00:42:25 2008 +0900 libsmbclient: Fix SIGBUS on non-x86 CPUs We must align the struct smbc_dirent in the struct SMBC_internal_data because the struct smbc_dirent has numeric values that require alignment. Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
2008-12-14Remove the global "cmdline_auth_info" from source3/lib/util.cVolker Lendecke2-12/+19
This involves changing all our clients, that's why it's so large.
2008-12-13Remove a pointless static variableVolker Lendecke1-7/+7
Every sane compiler will only allocate "*SMBSERVER" once
2008-12-13Remove a static variableVolker Lendecke1-6/+5
Derrell, please check! Thanks, Volker
2008-12-13Micro-Optimize cliconnect.cVolker Lendecke1-22/+27
In this form, the prots array is fully read-only in the text segment and thus can be shared between processes. Probably pointless, but I had fun doing it :-)
2008-12-13s3:dsgetdcname: retry with the clients siteStefan Metzmacher1-6/+43
metze
2008-12-13s3:libsmb/namequery.c: add saf_join_store() functionStefan Metzmacher1-3/+65
saf_join_store() should be called after a successful domain join, the affinity to the dc used at join time has a larger ttl, to avoid problems with delayed replication. metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit 80e74a27c55c01221091e3eec930c2ac4433c22c)
2008-12-13s3: libsmb/namequery: fallback to returning all dcs, when none is available ↵Stefan Metzmacher1-0/+9
in the requested site It could happen that all dcs in a site are unavailable (some sites have only one dc) and then we need to fallback to get all dcs. metze Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Günther Deschner <gd@samba.org> (cherry picked from commit c127367b1dd622eeceb1f47de0a047c297dda222)
2008-12-13For read&x replies, check the offsetVolker Lendecke1-0/+19
2008-12-08Fix bug #5953 - smbclient crashes: cli_list_new segmentation fault.Jeremy Allison1-1/+1
Jeremy.
2008-12-08Simplify async programming a bit with helper routinesVolker Lendecke4-21/+14
Introduce async_req_is_error() and async_req_simple_recv()
2008-12-08Add a "bytes_padding" parameter to smb_splice_chainVolker Lendecke1-12/+28
For example open&x and write&x needs the bytes to be aligned relative to the SMB header. In particular for write&x we should not have to move stuff around.
2008-12-08Factor out smb_splice_chain(), to be used by chain_reply() in smbdVolker Lendecke1-46/+98
2008-12-07Slightly simplify cli_session_setup_ntlmsspVolker Lendecke1-10/+2
Remove three pointless variables
2008-12-05Fix for crash bug freeing a non-malloc'ed buffer if the client sends a ↵Volker Lendecke1-0/+7
non-encrypted packet with the crypto state set.
2008-12-03s3: Change sockaddr util function names for consistencyTim Prouty5-13/+13
Also eliminates name conflicts with OneFS system libraries
2008-11-30remove the explicit mem_ctx from ntlmssp_state, use the state itselfVolker Lendecke1-46/+41
2008-11-30fix nonempty blank linesVolker Lendecke1-27/+27
2008-11-30Do not build the session request if it si not used anywayVolker Lendecke1-4/+4
2008-11-30fix nonempty blank linesVolker Lendecke1-19/+19
2008-11-28Move cli_trans_oob to lib/util.cVolker Lendecke1-17/+4
Rename it to trans_oob, it will be used in the server routines.
2008-11-18libsmb: Fix up pointer passed to cli_send_trans in cli_link_internalKai Blin1-1/+1
2008-11-10nterrors: add NT_STATUS_DS_BUSY.Günther Deschner1-0/+1
Guenther
2008-11-06s3-dsgetdcname: fix reply generation (forgot to map nt1 to nt5ex).Günther Deschner1-0/+2
Guenther
2008-11-01Make use of smb_bufrem()Volker Lendecke1-1/+1
2008-11-01ntlm_check.c: Sync some changes from Samba 4.Jelmer Vernooij1-16/+23
2008-11-01Use standardized types in ntlm_check.c.Jelmer Vernooij1-13/+13
2008-11-01Use shared doserr.c.Jelmer Vernooij1-196/+0
2008-11-01Rename dos_errstr() to win_errstr() for consistency with Samba 4.Jelmer Vernooij1-18/+12
2008-10-31errors: share dcerpc error function.Günther Deschner1-55/+0
Guenther
2008-10-24Error return is False, not -1Derrell Lipman1-3/+3
- There were a few places in SMBC_getatr() that returned -1 instead of a boolean. -1 was intended to mean error, but that's what False is for, and the usages of this function assume that it returns a boolean with False as the error condition. Derrell
2008-10-23Use sockaddr_storage only where we rely on the size, use sockaddrJelmer Vernooij4-21/+21
otherwise (to clarify we can also pass in structs smaller than sockaddr_storage, such as sockaddr_in).
2008-10-23Use WERR_FILE_EXISTS which is the equivalent of WERR_ALREADY_EXISTSJelmer Vernooij1-1/+1
previously present in Samba 3.
2008-10-23Use common error definitions.Jelmer Vernooij2-3/+3
2008-10-23s3-build: fix another build warning with the new ASN1 code.Günther Deschner1-2/+5
Guenther
2008-10-23s3-build: fix some const build warnings.Günther Deschner1-2/+2
Guenther
2008-10-22s3-build: fix the build.Günther Deschner1-2/+2
Guenther
2008-10-22s3-asn1: make all of s3 asn1 code do a proper asn1_init() first.Günther Deschner3-291/+354
Guenther
2008-10-22s3: use shared asn1 code.Günther Deschner5-643/+41
Guenther
2008-10-20s3-build: no need to duplicate generated ndr_ prototypes.Günther Deschner1-0/+1
Guenther
2008-10-19Add TALLOC_CTX pointer to generate_random_str(), for consistency withJelmer Vernooij1-3/+2
Samba 4.
2008-10-14Fixed "argument differ in signedness" warning on linuxTim Prouty1-2/+2
2008-10-14Use {u,}int64_t instead of SMB_BIG_{U,}INT.Jelmer Vernooij3-31/+27
2008-10-13Import changes from upstream libndr.Jelmer Vernooij1-1/+1
2008-10-12Use common byteorder.h.Jelmer Vernooij1-1/+1
2008-10-12Fix "warning: initialization discards qualifiers from pointer target type"Volker Lendecke1-1/+1
2008-10-11Cope with changed signature of http_timestring().Jelmer Vernooij1-2/+2
2008-10-11Merge branch 'master' of ssh://git.samba.org/data/git/samba into arc4Jelmer Vernooij6-340/+68
2008-10-09Ensure we handle signals correctly during the async calls.Jeremy Allison1-2/+2
Jeremy.