summaryrefslogtreecommitdiff
path: root/source4/client/client.c
AgeCommit message (Collapse)AuthorFilesLines
2013-02-22s4-client: Don't leak memory.Andreas Schneider1-0/+2
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2013-02-22s4-client: Don't leak file descriptor.Andreas Schneider1-0/+7
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2013-02-22s4-client: Don't leak resource handle.Andreas Schneider1-0/+2
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2012-12-21s4-client: Check return codes in do_connect().Andreas Schneider1-2/+18
Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
2012-12-12s4-client: Make sure we have a valid count if we goto cleanup.Andreas Schneider1-1/+2
Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
2011-11-30s4:libcli: move smbcli_transport_establish() logic into smbcli_socket_connect()Stefan Metzmacher1-8/+10
metze
2011-11-03s4: add some missing header dependencies.Günther Deschner1-0/+2
Guenther
2011-09-19s4-client: added close command in smbclientAndrew Tridgell1-4/+62
this matches the existing open command, and also gives you error codes on both open and close useful for testing share mode locking Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Mon Sep 19 23:59:28 CEST 2011 on sn-devel-104
2011-06-06s4-modules Remove lp_ctx from init functions that no longer need itAndrew Bartlett1-1/+1
Now that we don't allow the smb.conf to change the modules dir, many functions that simply load modules or initialise a subsytem that may load modules no longer need an lp_ctx. Andrew Bartlett
2011-05-06lib/util Rename ms_fnmatch() to ms_fnmatch_protocol() to avoid dup symbolAndrew Bartlett1-2/+2
This verison of the function takes a protcol as argument to determine matching rules. Andrew Bartlett
2011-05-04Fix simple uses of safe_strcpy -> strlcpy. Easy ones where we just remove -1.Jeremy Allison1-2/+2
2011-05-03Remove strlower_m() and strupper_m() from source4 and common code.Andrew Bartlett1-6/+8
This function is problematic because a string may expand in size when changed into upper or lower case. This will then push characters off the end of the string in the s3 implementation, or panic in the former s4 implementation. Andrew Bartlett
2010-12-06s4:client/client.c - fix Solaris warning by a type castMatthias Dieter Wallnöfer1-1/+1
2010-10-01samba: share readline wrappers among all buildsystems.Günther Deschner1-1/+1
Guenther
2010-09-10s4:client/client.c - fix wrong return codes in "do_connect"Matthias Dieter Wallnöfer1-2/+2
Detected by the Solaris cc compiler.
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-11/+11
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-05-28s4:client/client.c - we don't need "&ctx" for talloc callsMatthias Dieter Wallnöfer1-1/+1
Simply use "ctx".
2010-05-28s4:client/client.c - fix "asprintf"sMatthias Dieter Wallnöfer1-9/+15
Fix the result values or change them into "talloc_asprintf"s where possible see bug #6404
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-6/+1
2010-03-12s4:client: make use of dcerpc_binding_handle stubsStefan Metzmacher1-1/+1
metze
2010-02-02Change uint_t to unsigned int in source4Matt Kraai1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-10-20s4: ran minimal_includes.pl on source4/clientAndrew Tridgell1-4/+0
2009-10-02s4: fix various warnings (not "const" related ones)Matthias Dieter Wallnöfer1-19/+25
2009-08-21s4:clientSam Liddicott1-3/+7
Put was assuming that the remote name was always absolute, and not relative to the current remote directory. Signed-off-by: Sam Liddicott <sam@liddicott.com>
2009-06-18source4/client/client.c: Possible memory leaksSlava Semushin1-2/+5
Patch for bug #6446 cppcheck found 2 possible memory leaks: [./source4/client/client.c:3305]: (error) Memory leak: base_directory [./source4/client/client.c:3305]: (error) Memory leak: desthost Patch in attach.
2009-01-07s4:smbclient: correct initialize smbclient_contextStefan Metzmacher1-1/+1
Found by valgrind. metze
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-5/+5
list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
2008-11-02Remove another use of global_loadparm.Jelmer Vernooij1-3/+6
Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
2008-11-02Fix the build.Jelmer Vernooij1-1/+5
2008-11-01Move lp_*() calls a bit higher up the calls tack.Jelmer Vernooij1-3/+6
2008-11-01Fix prototype for attrib_string().Jelmer Vernooij1-0/+1
2008-10-31s4-srvsvc: merge srvsvc_NetShareEnumAll from s3 idl.Günther Deschner1-5/+12
Guenther
2008-10-24Remove include/local.h and move defines to more appropriate places.Jelmer Vernooij1-0/+6
2008-10-24Eliminate another instance of global_loadparm.Jelmer Vernooij1-6/+11
2008-10-23Remove unused constants from local.h.Jelmer Vernooij1-1/+1
2008-10-12Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij1-1/+1
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-09-30Cope with API changes.Jelmer Vernooij1-3/+6
2008-06-14Use a custom init function for samba4 that sets a samba4Simo Sorce1-1/+1
specific debug function. By default do not debug, this is the most appropriate action for a library as we cannot assume what stderr is use for in the main app. The main app is responsible to set ev_debug_stderr if they so desire. (This used to be commit e566a2f308ac6fb4b526a744f7059b565670aea5)
2008-05-15use a newer fsinfo level in smbclient, to support larger disksAndrew Tridgell1-3/+6
(This used to be commit 1acc8077fb86c1e78724b010d149db166d98238d)
2008-04-24Remove unused KANJI and terminal code options.Andrew Bartlett1-9/+0
Someone can re-add this with tests and an actual implementation. Andrew Bartlett (This used to be commit 62136febe7bb1122a57737ca43d1ed0800453d77)
2008-04-21Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce1-11/+35
the code. Make sure we pass around the event_context where we need it instead. All test but a few python ones fail. Jelmer promised to fix them. (This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
2008-04-17Remove event context tracking from the credentials struct.Jelmer Vernooij1-1/+2
(This used to be commit 4d7fc946b2ec50e774689c9036423b6feef99b8e)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-0/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-01-03r26654: libcli/smb_composite: Rather than specifying each of the gazillion ↵Jelmer Vernooij1-6/+13
options for SMB individually, just specify the smbcli_options struct. (This used to be commit 8a97886e24a4b969aa91409c06f423b71a45f6eb)
2008-01-03r26651: libsmb: Allow specifying signing policy from higher up.Jelmer Vernooij1-3/+3
The number of arguments is getting a bit excessive now, so it probably makes sense to pass in the smbcli_options struct rather than all members individually and add a convenience function for obtaining a smbcli_options struct from a loadparm context. (This used to be commit 9f64213463b5bf3bcbf36913139e9a5042e967a2)
2008-01-02r26644: Janitorial: Pass resolve_context explicitly to various SMB ↵Jelmer Vernooij1-6/+7
functions, should help fix the build for OpenChange. (This used to be commit 385ffe4f4cc9a21a760c0f00410f56e2592fd507)
2007-12-21r26458: Janitorial: also free() var on continue.Kai Blin1-0/+1
Spotted by metze. (This used to be commit adbf61dca50591f705023a18c00efe379676198a)
2007-12-21r26453: Janitorial: Don't use a static char[] in smb_readline_replacement.Kai Blin1-3/+5
Fix up callers to free the memory returned, as that is needed if we use the original readline function as well. (This used to be commit c81ead1c38f417d442157b21d0d389f6a540c6f9)
2007-12-21r26409: Pass smb ports along.Jelmer Vernooij1-6/+6
(This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f)