summaryrefslogtreecommitdiff
path: root/source3/client/client.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r20832: Remove extra pointers previously added to unique [out] pointers. ↵Jelmer Vernooij1-2/+1
Instead, add [ref] pointers where necessary (top-level [ref] pointers, by spec, don't appear on the wire). This brings us closer to the DCE/RPC standard again. (This used to be commit 580f2a7197b1bc9db14a643fdd112b40ef37aaef)
2007-10-10r19797: Convert the remaining pipes to the "new" unique out ptr handlingVolker Lendecke1-2/+4
(This used to be commit bc4e0a388a2859d2ddcfb8f07920f3b121a37894)
2007-10-10r19529: Added showacls togle. Previously was vendor-specific code.Jeremy Allison1-7/+71
Merging these in - should have been merged back before (will be tidied up later). Jeremy. (This used to be commit 1e9284590f42b61bd730104920bc535bf7dfcbf4)
2007-10-10r18876: Fix smbclient -LVolker Lendecke1-1/+4
(This used to be commit a03fb81a9d16c9db787c539d63c13ecaf6d6f80d)
2007-10-10r18813: the generated rpccli_ functions give NTSTATUSStefan Metzmacher1-3/+2
metze (This used to be commit 4a198cebe37d74437a8d526aff1139f1668bcd37)
2007-10-10r18802: Use the pidl-generated code for the srvsvc interface, both client ↵Jelmer Vernooij1-14/+12
and server code. This has had some basic testing. I'll do more during the next couple of days and hopefully also make RPC-SRVSVC from Samba4 pass against it. (This used to be commit ef10672399c4b82700dc431b4d93431ffdd42d98)
2007-10-10r18402: Comment and (hopefully) fix remote command completion for smbclient.Volker Lendecke1-11/+42
Fix Bug ID 4084. Volker (This used to be commit 0baa3fcfa6b7d39d0f490ad0682042706f2518f2)
2007-10-10r17800: Start using struct timespec internally for file timesJeremy Allison1-2/+2
on the wire. This allows us to go to nsec resolution for systems that support it. It should also now be easy to add a correct "create time" (birth time) for systems that support it (*BSD). I'll be watching the build farm closely after this one for breakage :-). Jeremy. (This used to be commit 425280a1d23f97ef0b0be77462386d619f47b21d)
2007-10-10r17571: Change the return code of cli_session_setup from BOOL to NTSTATUSVolker Lendecke1-8/+8
Volker (This used to be commit 94817a8ef53589011bc4ead4e17807a101acf5c9)
2007-10-10r16971: Ensure we use the correct separator for pathnamesJeremy Allison1-34/+135
in POSIX mode (clitar needs fixing too). Add test posix lock/unlock commands. Jeremy. (This used to be commit 596497ccc250896025253be1d67711d6d7f059f0)
2007-10-10r16962: Add a few utility fns into client. Allow POSIX capabilitiesJeremy Allison1-2/+69
to be selected. Jeremy. (This used to be commit 2d8d4bd77bac6f5e7865657e12affd8b94aa85c3)
2007-10-10r16945: Sync trunk -> 3.0 for 3.0.24 code. Still needJeremy Allison1-1/+1
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r16587: Fix Klocwork #1987. Memleak on reusing x_dbf.Jeremy Allison1-0/+3
Jeremy. (This used to be commit 16b0617cb0f91fbe1ce53dcb601fe5ed9e51bddf)
2007-10-10r16338: Fix Klocwork ID 150Volker Lendecke1-1/+8
(This used to be commit ded2952e00fec712ce612cf6aaabf85c1a6f4488)
2007-10-10r16274: Fix the smbclient prompting behaviour for both systems that haveJames Peach1-2/+3
libreadline and those that don't. We always use the built-in readline replacement for non-interactive mode. Interactive prompts are always emitted to stdout and non-interactive mode never prompts at all. Introduce x_fdup to avoid spuriously closing stdout when a logfile is specified on the command line and setup_logging is called a second time. (This used to be commit 848ac756f651a4be231e5635580c0fd5f3d3fa0e)
2007-10-10r16251: for i in `seq 1 1000`Volker Lendecke1-1/+1
do echo "I will always compile before commit :-)" done Also fix Klokwork ID 806. Volker (This used to be commit 4974c598c00abc20cfb73eee12a7c49c279e0f54)
2007-10-10r16250: Fix Klokwork IDs 148, 151, 152, 154.Volker Lendecke1-4/+4
Volker (This used to be commit d7a75ee94db009085165c062f73b68162a8b6da8)
2007-10-10r16230: Fix Klocwork #861 and others. localtime and asctimeJeremy Allison1-5/+21
can return NULL. Ensure we check all returns correctly. Jeremy. (This used to be commit 6c61dc8ed6d84f310ef391fb7700e93ef42c4afc)
2007-10-10r15098: Make smbclient -L use RPC to list shares, fall back to RAP. This ↵Volker Lendecke1-1/+56
should list long share names. Volker (This used to be commit d3d388180dacb7b9db5d122bc3f2ce1045434f53)
2007-10-10r14359: Try and fix Coverity #176 by making the pointerJeremy Allison1-7/+7
aliasing clearer. This isn't a bug but a code clarification. Jeremy. (This used to be commit a3b8bee3ff8211d78f793877c877ccd2e15825dd)
2007-10-10r14351: Ensure we use the minimum of PATH_MAX and sizeof(pstring).Jeremy Allison1-5/+12
Fix Coverity #59. Jeremy. (This used to be commit d793e1550cc8c79a2764609cddec082470d226e4)
2007-10-10r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison1-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. (This used to be commit 1d710d06a214f3f1740e80e0bffd6aab44aac2b0)
2007-10-10r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman1-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.) (This used to be commit f2a24de769d1b2266e576597c57a8e3b1e2a2b51)
2007-10-10r12555: Fix more load_case_table swegfaults. Arggg.Jeremy Allison1-0/+1
What I'd give for a global constructor... Jeremy. (This used to be commit c970d7d0a5ba225465dfb0980989b8817b17c643)
2007-10-10r11978: Volker's fix for #3292 (smbclient spins if server terminatesJeremy Allison1-1/+5
connection). Jeremy. (This used to be commit 9b8602e0551500916a9d79c317589cd82d3da111)
2007-10-10r11976: (Slightly modified) Volker fix for #3293. Use SMBecho instead ofJeremy Allison1-1/+6
chkpath to keep a connection alive. Jeremy. (This used to be commit f1c88de7a28942b6aaa634551dde7a8af91f4de3)
2007-10-10r11839: Info level 0x101 is really a protocol NT level.Jeremy Allison1-1/+1
Fix bug #3274 from Guenter Kukkukk <guenter.kukkukk@kukkukk.com> Jeremy. (This used to be commit e4b3b70ef1c0fea3252b73c55ea3e9cad7229afd)
2007-10-10r11770: BUG 2718: don't use qpathinfo_basic() call when remote server is ↵Gerald Carter1-2/+3
Win9x or the do_cd() call will fail (This used to be commit be31c2a105ae2b6e655530190c939caae1b41294)
2007-10-10r11511: A classic "friday night check-in" :-). This moves muchJeremy Allison1-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. (This used to be commit 414303bc0272f207046b471a0364fa296b67c1f8)
2007-10-10r10964: BUG 1051: store the directory path so we can send the full name in ↵Gerald Carter1-2/+9
the unlink call (del tmp\foo) (This used to be commit 49b8d7d7f5ed93a2b9b21404194452f35bcf7b26)
2007-10-10r9545: (Hopefully the last) fixes for DIR -> SMB_STRUCT_DIR.Jeremy Allison1-5/+5
Jeremy. (This used to be commit b242f278601e1a23c9116009482e802326d418f7)
2007-10-10r8572: Remove crufty #define NO_SYSLOG as it's not used at all anymore.Tim Potter1-2/+0
(This used to be commit 985dbb47d925e79c1195ca219f7ab5d6648b22b8)
2007-10-10r8478: remove unused printmode command from smbclient (noticed by ↵Gerald Carter1-40/+0
kalim@samba.org) (This used to be commit aa5de7d0b35b07dfb32aa43df00f73de80de9fdd)
2007-10-10r6685: smbclient fixesGerald Carter1-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 (This used to be commit 9e3e473632fee669eda477d8cbe309b7109552ea)
2007-10-10r6388: BUG 2626: ensure that the calling_name is set to something after ↵Gerald Carter1-0/+2
parsing smb.conf (if not set via -n) (This used to be commit 97c68ec1e86c1de44fa1ab6e5a9d7f58b2843a34)
2007-10-10r6348: Fix for bug #2605 reported by Daniel Patterson ↵Jeremy Allison1-6/+21
<Daniel_Patterson@national.com.au>. Ensure smbclient doesn't perform commands if the "chdir" fails in a scripted set. Jeremy. (This used to be commit 644608ea7db6d8d73a8c028a82cd0767ffe32af6)
2007-10-10r6291: BUG 2588: force smbclient messages to port 139 unless someone set the ↵Gerald Carter1-1/+6
-p option (This used to be commit 40f573e202096088957bfff8ca2eb49f5b4985bd)
2007-10-10r6225: get rid of warnings from my compiler about nested externsHerb Lewis1-3/+3
(This used to be commit efea76ac71412f8622cd233912309e91b9ea52da)
2007-10-10r6120: Added "volume" command to smbclient that prints out the volume name andJeremy Allison1-0/+20
serial number. Jeremy. (This used to be commit c69623072e4112a4719867ea4809f5145b3cb64c)
2007-10-10r5979: Don't crash when talking to a Win98 server (bugid #2530 - not a fixJeremy Allison1-0/+1
buy just prevent the crash). Jeremy. (This used to be commit 9d5ef800b6d3da54a5c733cff70306ac052ddd23)
2007-10-10r5968: derrell's large file fix for libsmbclient (BUG 2505)Gerald Carter1-2/+2
(This used to be commit 85be4c5df398faa6c5bfacd1f9d2f12c39d411e1)
2007-10-10r5835: Make smbclient obey the max protocol argument again.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 7cb9618e5de8aae5e910e620e70ea130b76f6099)
2007-10-10r5578: get 'recurse; dir' working across multiple levels of dfs referralsGerald Carter1-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 * (This used to be commit 52c82b51ba9729cc53a049d8e9fbb7365d652c51)
2007-10-10r5577: get recurse; dir working across single level dfs referralsGerald Carter1-3/+5
(This used to be commit d4443807bc7a5a8615c69517365a92709db7ce29)
2007-10-10r5545: move cli_cm_XXX() connection handling code to clidfs and out of ↵Gerald Carter1-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 (This used to be commit d6a05ffd664e2e304f6e481af34a4c5d640fc3f9)
2007-10-10r5542: fix a few more msdfs bugs in smbclient against both smbd and 2k dfs rootGerald Carter1-5/+29
shares. (This used to be commit 5d2624c453b0bc961302edd9f2421a7c3d504d1f)
2007-10-10r5527: Allow own netbios name to be set in smbclient's session setup.Günther Deschner1-2/+8
Guenther (This used to be commit 3660b7e64d9a17bcaa4f43c6d782b0b1d52ed6ab)
2007-10-10r5520: fix last remaining dfs issues with smbclient.Gerald Carter1-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). (This used to be commit 53d6a5f9d16aef4afc60b4b37b296b256da00dfd)
2007-10-10r5519: fix msdfs support for [m]get and [m]putGerald Carter1-16/+32
(This used to be commit 6a9e4d6af1a4a4f426189e71aac5a4e7e217d6f7)
2007-10-10r5518: Add initial msdfs support to smbclient. Currently I can onlyGerald Carter1-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* ) (This used to be commit e57fd2c5f00de2b11a2b44374830e89a90bc0022)