summaryrefslogtreecommitdiffstats
path: root/source/client/client.c
Commit message (Collapse)AuthorAgeFilesLines
* r22434: sync from the 3.0.25 tree for rc2Gerald Carter2007-04-211-2/+2
|
* r22138: * Sync up with the SAMBA_3_0_25 as of svn r22132.Gerald Carter2007-04-091-26/+63
| | | | | * Set VERSION to 3.0.25rc1 * Update release notes.
* r21889: * Pull from SAMBA-3_0_25 svn r21888Gerald Carter2007-03-201-54/+218
| | | | * Set version to 3.0.25pre2
* r21585: Start syncing the monster that will become 3.0.25pre1Gerald Carter2007-02-281-61/+294
| | | | | | | | Still todo: * release notes * few minor outstanding patches * additional idmap man pages
* r19581: Merge from SAMBA_3_0_23Gerald Carter2006-11-061-7/+71
|
* r16674: After removing each individual post-3.0.23rc3 change:Gerald Carter2006-06-291-0/+3
| | | | | | | | | | | | | | This pulls is what I considered safe fixes from SAMBA_3_0. This boiled down to either Klocwork fixes or obvious compiler warning fixes. I did not include any changes to fnuction signatures not the version change to the passdb API. Also pulled in the 3 nmbd fixes requested by Jeremy and the wildcard delete fix. This code will sit for a few days in the cooker and then become 3.0.23 if nothing blows up. I don't care how many more compile warning fixes people throw into SAMBA_3_0.
* r16348: * merging changes from SAMBA_3_0 r16346Gerald Carter2006-06-191-3/+11
| | | | * updating release notes to match
* r16254: pulling klocwork fixes for 3.0.23rc3 (current up to r16251)Gerald Carter2006-06-151-9/+25
|
* r15098: Make smbclient -L use RPC to list shares, fall back to RAP. This ↵Volker Lendecke2006-04-161-1/+56
| | | | | | | | should list long share names. Volker
* r14359: Try and fix Coverity #176 by making the pointerJeremy Allison2006-03-131-7/+7
| | | | | | aliasing clearer. This isn't a bug but a code clarification. Jeremy.
* r14351: Ensure we use the minimum of PATH_MAX and sizeof(pstring).Jeremy Allison2006-03-131-5/+12
| | | | | Fix Coverity #59. Jeremy.
* r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison2006-03-071-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | realloc can return NULL in one of two cases - (1) the realloc failed, (2) realloc succeeded but the new size requested was zero, in which case this is identical to a free() call. The error paths dealing with these two cases should be different, but mostly weren't. Secondly the standard idiom for dealing with realloc when you know the new size is non-zero is the following : tmp = realloc(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } However, there were *many* *many* places in Samba where we were using the old (broken) idiom of : p = realloc(p, size) if (!p) { return error; } which will leak the memory pointed to by p on realloc fail. This commit (hopefully) fixes all these cases by moving to a standard idiom of : p = SMB_REALLOC(p, size) if (!p) { return error; } Where if the realloc returns null due to the realloc failing or size == 0 we *guarentee* that the storage pointed to by p has been freed. This allows me to remove a lot of code that was dealing with the standard (more verbose) method that required a tmp pointer. This is almost always what you want. When a realloc fails you never usually want the old memory, you want to free it and get into your error processing asap. For the 11 remaining cases where we really do need to keep the old pointer I have invented the new macro SMB_REALLOC_KEEP_OLD_ON_ERROR, which can be used as follows : tmp = SMB_REALLOC_KEEP_OLD_ON_ERROR(p, size); if (!tmp) { SAFE_FREE(p); return error; } else { p = tmp; } SMB_REALLOC_KEEP_OLD_ON_ERROR guarentees never to free the pointer p, even on size == 0 or realloc fail. All this is done by a hidden extra argument to Realloc(), BOOL free_old_on_error which is set appropriately by the SMB_REALLOC and SMB_REALLOC_KEEP_OLD_ON_ERROR macros (and their array counterparts). It remains to be seen what this will do to our Coverity bug count :-). Jeremy.
* r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman2006-01-281-1/+1
| | | | | | | | | | | | lp_load() could not be called multiple times to modify parameter settings based on reading from multiple configuration settings. Each time, it initialized all of the settings back to their defaults before reading the specified configuration file. This patch adds a parameter to lp_load() specifying whether the settings should be initialized. It does, however, still force the settings to be initialized the first time, even if the request was to not initialize them. (Not doing so could wreak havoc due to uninitialized values.)
* r12555: Fix more load_case_table swegfaults. Arggg.Jeremy Allison2005-12-281-0/+1
| | | | | What I'd give for a global constructor... Jeremy.
* r11978: Volker's fix for #3292 (smbclient spins if server terminatesJeremy Allison2005-11-301-1/+5
| | | | | connection). Jeremy.
* r11976: (Slightly modified) Volker fix for #3293. Use SMBecho instead ofJeremy Allison2005-11-301-1/+6
| | | | | chkpath to keep a connection alive. Jeremy.
* r11839: Info level 0x101 is really a protocol NT level.Jeremy Allison2005-11-221-1/+1
| | | | | Fix bug #3274 from Guenter Kukkukk <guenter.kukkukk@kukkukk.com> Jeremy.
* r11770: BUG 2718: don't use qpathinfo_basic() call when remote server is ↵Gerald Carter2005-11-181-2/+3
| | | | Win9x or the do_cd() call will fail
* r11511: A classic "friday night check-in" :-). This moves muchJeremy Allison2005-11-051-2/+2
| | | | | | | | | | | | | | | | of the Samba4 timezone handling code back into Samba3. Gets rid of "kludge-gmt" and removes the effectiveness of the parameter "time offset" (I can add this back in very easily if needed) - it's no longer being looked at. I'm hoping this will fix the problems people have been having with DST transitions. I'll start comprehensive testing tomorrow, but for now all modifications are done. Splits time get/set functions into srv_XXX and cli_XXX as they need to look at different timezone offsets. Get rid of much of the "efficiency" cruft that was added to Samba back in the day when the C library timezone handling functions were slow. Jeremy.
* r10964: BUG 1051: store the directory path so we can send the full name in ↵Gerald Carter2005-10-131-2/+9
| | | | the unlink call (del tmp\foo)
* r9545: (Hopefully the last) fixes for DIR -> SMB_STRUCT_DIR.Jeremy Allison2005-08-231-5/+5
| | | | Jeremy.
* r8572: Remove crufty #define NO_SYSLOG as it's not used at all anymore.Tim Potter2005-07-191-2/+0
|
* r8478: remove unused printmode command from smbclient (noticed by ↵Gerald Carter2005-07-141-40/+0
| | | | kalim@samba.org)
* r6685: smbclient fixesGerald Carter2005-05-091-3/+16
| | | | | | * BUG 2680: copy files from an MSDFS win2k root share * BUG 2688: re-implement support for the -P (--port) option * support connecting to an 'msdfs proxy' share on a Samba server
* r6388: BUG 2626: ensure that the calling_name is set to something after ↵Gerald Carter2005-04-191-0/+2
| | | | parsing smb.conf (if not set via -n)
* r6348: Fix for bug #2605 reported by Daniel Patterson ↵Jeremy Allison2005-04-151-6/+21
| | | | | | | <Daniel_Patterson@national.com.au>. Ensure smbclient doesn't perform commands if the "chdir" fails in a scripted set. Jeremy.
* r6291: BUG 2588: force smbclient messages to port 139 unless someone set the ↵Gerald Carter2005-04-111-1/+6
| | | | -p option
* r6225: get rid of warnings from my compiler about nested externsHerb Lewis2005-04-061-3/+3
|
* r6120: Added "volume" command to smbclient that prints out the volume name andJeremy Allison2005-03-301-0/+20
| | | | | serial number. Jeremy.
* r5979: Don't crash when talking to a Win98 server (bugid #2530 - not a fixJeremy Allison2005-03-221-0/+1
| | | | | buy just prevent the crash). Jeremy.
* r5968: derrell's large file fix for libsmbclient (BUG 2505)Gerald Carter2005-03-221-2/+2
|
* r5835: Make smbclient obey the max protocol argument again.Jeremy Allison2005-03-161-1/+1
| | | | Jeremy.
* r5578: get 'recurse; dir' working across multiple levels of dfs referrals Gerald Carter2005-02-261-16/+16
| | | | | | note that this does not handle the situation where the same \\server\share is mounted mutliple times in the dfs tree since I store a single mount path per struct cli_state *
* r5577: get recurse; dir working across single level dfs referralsGerald Carter2005-02-261-3/+5
|
* r5545: move cli_cm_XXX() connection handling code to clidfs and out of ↵Gerald Carter2005-02-241-273/+27
| | | | client.c; client.c still maintains a pointer to the first connection so the change is fairly reansparent to other smbclient functions such as -L and -M
* r5542: fix a few more msdfs bugs in smbclient against both smbd and 2k dfs rootGerald Carter2005-02-241-5/+29
| | | | shares.
* r5527: Allow own netbios name to be set in smbclient's session setup.Günther Deschner2005-02-241-2/+8
| | | | Guenther
* r5520: fix last remaining dfs issues with smbclient.Gerald Carter2005-02-231-53/+146
| | | | | | | | | | | | | | | * all the unix extension commands should work * send the correct TRANS2_FINDFIRST format to 2k to get a listing from a msdfs root share (tested against smbd as well). * mkdir, rmdir, etc... all seem ok. I'm sure bugs will pop up so keep testing. Last thing I plan on doing is to clean up the horrible mess with connection management in smbclient and global variables (so i can move the cli_cm_xx() routines to a separate file).
* r5519: fix msdfs support for [m]get and [m]putGerald Carter2005-02-231-16/+32
|
* r5518: Add initial msdfs support to smbclient. Currently I can only Gerald Carter2005-02-231-104/+141
| | | | | | | | | | | | cd up and down the tree and get directory listings. Still have to figure out how to get a directory listing on a 2k dfs root. Also have to work out some issues with relative paths that cross dfs mount points. We're protected from the new code paths when connecting to a non-dfs root share ( the flag from the tcon&X is stored in the struct cli_state* )
* r5495: * add in some code from Mike Nix <mnix@wanm.com.au> for the SMBsplopenGerald Carter2005-02-221-129/+271
| | | | | | | | | | | | | | | | and SMBsplclose commands (BUG 2010) * clarify some debug messages in smbspool (also from Mike) my changes: * start adding msdfs client routines * enable smbclient to maintain multiple connections * set the CAP_DFS flag for our internal clienht routines. I actualy have a dfs referral working in do_cd() but that code is too ugly to live so I'm not checking it in just yet. Further work is to merge with vl's changes in trunk to support multiple TIDs per cli_state *.
* r4697: Fix for bug #2231 inspired by brad.ellis@its.monash.edu.au.Jeremy Allison2005-01-121-3/+3
| | | | | Remove double "\\" from findfirst. Jeremy.
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2004-12-071-14/+14
| | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy.
* r3931: Fix all "may be used uninitialized" and "shadow" warnings.Jeremy Allison2004-11-241-2/+4
| | | | Jeremy.
* r3714: Getfacl now seems to work on files and directories. Next do setfaclJeremy Allison2004-11-131-2/+132
| | | | | and port to Samba4. Jeremy.
* r3713: Implementation of get posix acls in UNIX extensions. Passes valgrind.Jeremy Allison2004-11-121-0/+47
| | | | | | | | Need to add printout functions in client and set posix acl in server. SteveF - take a look at this for the cifsfs client ! Once this is working and tested the next step is to write this up for the UNIX extensions spec. documents. Jeremy.
* r3292: A fix from Narayana Pattipati ↵Richard Sharpe2004-10-271-2/+2
| | | | | | <narayana[dot]pattipati[at]wipro\dotty/com> for Solaris to ensure we distinguish properly between 5.1 and 5.10.
* r2835: Since we always have -I. and -I$(srcdir) in CFLAGS, we can get rid of Tim Potter2004-10-071-1/+1
| | | | | '..' from all #include preprocessor commands. This fixes bugzilla #1880 where OpenVMS gets confused about the '.' characters.
* r2651: Added 'stat' command to smbclient to exercise the UNIX_FILE_BASICJeremy Allison2004-09-261-0/+153
| | | | | | | | info level. Outputs data on the file in the same format the the stat command in Linux. Should be useful to people wanting to learn how to parse the UNIX extension output. Yes I will add the docs later :-). Jeremy.
* r1908: Bugzilla #1541. Fix recursive ls in smbclient. Fix by Josef Zlomek.Tim Potter2004-08-191-1/+1
|