summaryrefslogtreecommitdiff
path: root/source3/client/client.c
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10Add start of IPv6 implementation. Currently most of this is avoidingJeremy Allison1-2/+2
IPv6 in winbindd, but moves most of the socket functions that were wrongly in lib/util.c into lib/util_sock.c and provides generic IPv4/6 independent versions of most things. Still lots of work to do, but now I can see how I'll fix the access check code. Nasty part that remains is the name resolution code which is used to returning arrays of in_addr structs. Jeremy. (This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-67/+18
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
2007-10-10r25169: Fix bug 4028Volker Lendecke1-0/+4
(This used to be commit 1a022267003480b4487a780ebaa6016f491828a3)
2007-10-10r24223: Convert reply_echo to the new APIVolker Lendecke1-4/+6
(This used to be commit 4863ff2899419e791ed0e340821072d004fb1d17)
2007-10-10r24036: Fix dfs rename bug in smbclient reported by Thomas Bork ↵Jeremy Allison1-5/+14
<tombork@web.de>. Couldn't rename file as we weren't DFS enabling the target path. Jeremy. (This used to be commit cd66c133a1b010874ea9e7a500ea24c52011e523)
2007-10-10r23989: For testing purposes, add "echo" to smbclientVolker Lendecke1-0/+19
(This used to be commit 4cdfc887545f7367239c73b0fecf173970bbc5d2)
2007-10-10r23825: Add ".." command as an alias to "cd ..".Günther Deschner1-1/+15
Guenther (This used to be commit c254c5e2549b2a4fe4895b467c4802f4b8ddb2f3)
2007-10-10r23824: Add ls alias for lazy typers like me.Günther Deschner1-0/+1
Guenther (This used to be commit cdec09956c941d7ea9d67dc03959f2bdf9a37cb2)
2007-10-10r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell1-2/+1
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r23571: Fix, parsing of multi byte share names.Simo Sorce1-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. (This used to be commit d2846e6b90e8774a729e6cf3a0c809aa8ff4a93a)
2007-10-10r23554: Fix bug #4711 by makeing cli_connect return an NTSTATUS.Jeremy Allison1-2/+8
Long overdue fix.... Jeremy. (This used to be commit 073fdc5a58139796dbaa7ea9833dca5308f11282)
2007-10-10r22354: Make client select krb5 encrpyt if krb5 already on.Jeremy Allison1-23/+28
Jeremy. (This used to be commit 7b89a5de57cd5fed814eda95e44dcc345f380fb2)
2007-10-10r22155: Fixed warning #4498 from jason@ncac.gwu.edu.Jeremy Allison1-2/+2
Jeremy. (This used to be commit f1b22c952719f004d7e33813c4d0f10514e1fff9)
2007-10-10r22002: Fix bug #3974, there are still open issues with -N behavior (doc fix ↵Simo Sorce1-26/+63
next) and -T argument parsing behavior (which is just insane but a separate bug) (This used to be commit 1a3980f1fcb6431aa6bce83f7c34338436b4e962)
2007-10-10r21992: Fix keepalive processing when encryption turned on.Jeremy Allison1-2/+2
Jeremy. (This used to be commit 8f113ad1918dcd2746ec527ceb79a2a7baa1d415)
2007-10-10r21901: Don't use fstrcat when you mean fstrcpy. Doh !Jeremy Allison1-3/+4
Jeremy. (This used to be commit c7153411f1840e41470311db00d728e1461c56f6)
2007-10-10r21898: Added test command, fixed first valgrind bugs.Jeremy Allison1-0/+43
Now to investigate why it doesn't work :-). Jeremy. (This used to be commit 73f7c6cef8371ad63eb1dc3e79bfc78503dbd7a4)
2007-10-10r21768: Fix the client dfs code such that smbclient canJeremy Allison1-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. (This used to be commit 1c9e10569cd97ee41de39f9f012bea4e4c932b5d)
2007-10-10r21750: Sync up with SAMBA_3_0_25. Only client changes are in libsmbclientJeremy Allison1-0/+32
right now. Jeremy. (This used to be commit 6dd5f0ef0fe3a673081e16e656ca579bf50457ff)
2007-10-10r21734: Fix bug #4369. Patch from David Leonard <dleonard@vintela.com>.Jeremy Allison1-0/+5
Jeremy. (This used to be commit 62a5c22a13001010753975442e62841ac62d8d6a)
2007-10-10r21714: Change the VFS interface to use struct timespecJeremy Allison1-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. (This used to be commit 8f3d530c5a748ea90f42ed8fbe68ae92178d4875)
2007-10-10r21657: get rid of warning - not everyone understands %FHerb Lewis1-3/+3
(This used to be commit 5a7330cfe460cd53b89f5a27e18857f4ea7f9939)
2007-10-10r21641: Add test code for POSIX pathname calls into smbclient.Jeremy Allison1-0/+147
Jeremy. (This used to be commit 9858e5b72526360fc415b848a84042e09d9b2453)
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)