summaryrefslogtreecommitdiffstats
path: root/source/client/client.c
Commit message (Collapse)AuthorAgeFilesLines
* r25387: Sync with 3.2.0 svn treeGerald Carter2007-09-271-0/+4
|
* r24660: Merge the inbuf/outbuf changesVolker Lendecke2007-08-251-4/+6
|
* r24036: Fix dfs rename bug in smbclient reported by Thomas Bork ↵Jeremy Allison2007-07-241-5/+14
| | | | | | | <tombork@web.de>. Couldn't rename file as we weren't DFS enabling the target path. Jeremy.
* r23989: For testing purposes, add "echo" to smbclientVolker Lendecke2007-07-221-0/+19
|
* r23825: Add ".." command as an alias to "cd ..".Günther Deschner2007-07-111-1/+15
| | | | Guenther
* r23824: Add ls alias for lazy typers like me.Günther Deschner2007-07-111-0/+1
| | | | Guenther
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-07-101-2/+1
|
* r23780: Find and fix more GPL2 -> GPL3.Jeremy Allison2007-07-091-1/+1
| | | | Jeremy.
* r23571: Fix, parsing of multi byte share names.Simo Sorce2007-06-211-16/+10
| | | | | | | | | | | Thanks to SATOH Fumiyasu Fixes 4720 Jerry, this is a showstopper for 3.0.25b, please grab it into SAMBA_3_0_RELEASE before cuting the tarballs. Simo.
* r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.Jeremy Allison2007-06-201-2/+8
| | | | | Long overdue fix.... Jeremy.
* r22155: Fixed warning #4498 from jason@ncac.gwu.edu.Jeremy Allison2007-04-101-2/+2
| | | | Jeremy.
* r22002: Fix bug #3974, there are still open issues with -N behavior (doc fix ↵Simo Sorce2007-03-281-26/+63
| | | | | | next) and -T argument parsing behavior (which is just insane but a separate bug)
* r21768: Fix the client dfs code such that smbclient canJeremy Allison2007-03-081-48/+61
| | | | | | | | | process deep dfs links (ie. links that go to non root parts of a share). Make the directory handling conanonical in POSIX and Windows pathname processing. dfs should not be fully working in client tools. Please bug me if not. Jeremy.
* r21734: Fix bug #4369. Patch from David Leonard <dleonard@vintela.com>.Jeremy Allison2007-03-071-0/+5
| | | | Jeremy.
* r21714: Change the VFS interface to use struct timespecJeremy Allison2007-03-051-3/+3
| | | | | | | | | | for utimes - change the call to ntimes. This preserves nsec timestamps we get from stat (if the system supports it) and only maps back down to usec or sec resolution on time set. Looks bigger than it is as I had to move lots of internal code from using time_t and struct utimebuf to struct timespec. Jeremy.
* r21657: get rid of warning - not everyone understands %FHerb Lewis2007-03-021-3/+3
|
* r21641: Add test code for POSIX pathname calls into smbclient.Jeremy Allison2007-03-011-1/+147
| | | | Jeremy.
* r20673: Add in the wdel smbclient command that allows meJeremy Allison2007-01-111-8/+12
| | | | | | to hand test attribute and wildcard delete strings to try and understand the underlying method in w2k3. Jeremy.
* r20655: After consulting with Volker, fix our pathnameJeremy Allison2007-01-101-0/+29
| | | | | | | | | | handling. Gets rid of more code than it adds. I will port this to SAMBA_3_0 next. There are still some wrinkles with wildcard delete I am working on - for example a dirtype pattern of 0x8aa4 isn't handled correctly yet.... still looking at this. Jeremy.
* r19814: Fix 'make everything build'Gerald Carter2006-11-211-17/+16
| | | | | | | The only major remaining pieces that are not being merged are: * The IDL work * The security descriptor merge.
* r19810: more merge work....does not compile currently. Working on smbd mergeGerald Carter2006-11-211-75/+276
|
* r19806: merge time.c changesGerald Carter2006-11-201-2/+2
|
* r19529: Added showacls togle. Previously was vendor-specific code.Jeremy Allison2006-11-011-7/+71
| | | | | | Merging these in - should have been merged back before (will be tidied up later). Jeremy.
* 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.