summaryrefslogtreecommitdiff
path: root/source3/client
AgeCommit message (Collapse)AuthorFilesLines
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-10r18047: More C++ stuffVolker Lendecke1-3/+3
(This used to be commit 86f4ca84f2df2aa8977eb24828e3aa840dda7201)
2007-10-10r17850: Another dummy checkin for the build farm to retryVolker Lendecke1-1/+1
(This used to be commit ac7087a6516fa7e0d10523a892acae852a80e29e)
2007-10-10r17800: Start using struct timespec internally for file timesJeremy Allison2-18/+23
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-10r17605: Some C++ warningsVolker Lendecke1-15/+15
(This used to be commit 05268d7a731861b10ce8556fd32a004808383923)
2007-10-10r17572: Fix the buildVolker Lendecke1-5/+5
(This used to be commit acf237b3cd1b546c2744447d977d36a8e3ed4d10)
2007-10-10r17571: Change the return code of cli_session_setup from BOOL to NTSTATUSVolker Lendecke2-11/+12
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 Allison5-3/+17
to do the upper layer directories but this is what everyone is waiting for.... Jeremy. (This used to be commit 9dafb7f48ca3e7af956b0a7d1720c2546fc4cfb8)
2007-10-10r16608: Klocwork #2035. Null deref (bit of a stretch... :-).Jeremy Allison1-2/+4
Jeremy. (This used to be commit 7d7a98208b1b514da60486fcbbb7b6d04df4ffac)
2007-10-10r16587: Fix Klocwork #1987. Memleak on reusing x_dbf.Jeremy Allison2-0/+6
Jeremy. (This used to be commit 16b0617cb0f91fbe1ce53dcb601fe5ed9e51bddf)
2007-10-10r16360: Fix Klocwork ID 136 520 521 522 523 542 574 575 576 607Volker Lendecke1-0/+5
in net_rpc.c: 715 716 732 734 735 736 737 738 739 749 in net_rpc_audit.c: 754 755 756 in net_rpc_join.c: 757 in net_rpc_registry: 766 767 in net_rpc_samsync.c: 771 773 in net_sam.c: 797 798 Volker (This used to be commit 3df0bf7d6050fd7c9ace72487d4f74d92e30a584)
2007-10-10r16338: Fix Klocwork ID 150Volker Lendecke2-2/+16
(This used to be commit ded2952e00fec712ce612cf6aaabf85c1a6f4488)
2007-10-10r16274: Fix the smbclient prompting behaviour for both systems that haveJames Peach2-5/+7
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 Allison3-13/+45
can return NULL. Ensure we check all returns correctly. Jeremy. (This used to be commit 6c61dc8ed6d84f310ef391fb7700e93ef42c4afc)
2007-10-10r15552: Fix segfault...Günther Deschner1-0/+2
Guenther (This used to be commit ff93fc7c1e22c035f6f1405d263702bbb9d61575)
2007-10-10r15519: Fix segfault.Günther Deschner1-1/+3
Guenther (This used to be commit a0548914c21bb769c3e97b47c9bc521c595f579b)
2007-10-10r15448: New autoconf macro to test for sysconf variables.James Peach1-1/+0
(This used to be commit a19d4f2bb4aa94ab40e371efbad9f17e38e3bbc4)
2007-10-10r15141: Fix for #3592 inspired by Justin Best <justinb@pdxmission.org>.Jeremy Allison1-19/+30
Ignore a file in a tar output if the first read fails. Also cope with <2GB read fail. Jeremy. (This used to be commit 1b73e699e11c6e26e9a9123e74190eebd170fc05)
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-10r14248: Fix Coverity bug # 84Volker Lendecke1-0/+1
(This used to be commit 811ae2b21f98bd8926f8edd70de19fe18265e28e)
2007-10-10r14246: Fix Coverity bug # 85Volker Lendecke1-0/+2
(This used to be commit ebc21336d80c5d417b309d4f9c22c074c324e123)
2007-10-10r14242: Fix Coverity bug # 82Volker Lendecke1-0/+2
(This used to be commit 9f645e996279be74aaeebcbecbfa07adce49ec7c)
2007-10-10r14176: Fix coverity bug #30. Ensure no possible null deref.Jeremy Allison1-2/+7
Jeremy. (This used to be commit e5d6069cf88c0aa632af5582fcd7466729b20934)
2007-10-10r14166: Fix const warning.Jeremy Allison1-1/+1
Jeremy. (This used to be commit 2ec461ae583b9a07da3ce5abd7f90ea18e1535ae)
2007-10-10r14148: Removing the not very well tested krb5 ticket refresh handling activatedGünther Deschner1-10/+0
over --with-kcm. No time to look after it for the moment. Guenther (This used to be commit 7ec2b31a8790db1466ffafeab533c11ab7ea801a)
2007-10-10r14145: Add missing WITH_KCM hunks from my local tree.Günther Deschner1-2/+12
Guenther (This used to be commit 977079a0583497255fbd4a48de52ebd404710b62)
2007-10-10r14128: Remove warning generated by coverity scan tool (missing SAFE_FREE in ↵Steve French1-0/+1
error path) (This used to be commit 33a1e26114d7dfdfb72e393efa399454a588e11e)
2007-10-10r14127: Remove coverity warning on mount.cifs.cSteve French1-1/+7
(This used to be commit 2ec51635ae7ba448f18c4c1342a5fd2adb1ec869)
2007-10-10r14126: resolve two warnings from the coverity scanSteve French1-5/+8
(This used to be commit 32c7243b80f1f06d37511fb87f7a5c715f4847c6)
2007-10-10r14009: Remove last const warning (have to use CONST_DISCARD).Jeremy Allison1-1/+3
Jeremy. (This used to be commit af0ade470f2fac3509a44207b4572e279ba30e34)
2007-10-10r14006: Fix a couple of irritating warnings.Jeremy Allison1-2/+2
Jeremy. (This used to be commit ead13ca522d7b8cbb47d660d3cb73c3582088985)
2007-10-10r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison3-13/+6
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-10r13714: Set MOUNT_CIFS_VENDOR_SUFFIX if _SAMBA_BUILD_ is set toLars Müller2-4/+22
"-"SAMBA_VERSION_OFFICIAL_STRING"-"SAMBA_VERSION_VENDOR_SUFFIX if SAMBA_VERSION_VENDOR_SUFFIX is set or "-"SAMBA_VERSION_OFFICIAL_STRING only if MOUNT_CIFS_VENDOR_SUFFIX is undefined. This results in: mount.cifs -V mount.cifs version: 1.10-3.1.2pre1-SVN-build-13706-foovendor or mount.cifs version: 1.10-3.1.2pre1-SVN-build-13706 Steve: If this is to long or you do not like it, we might add something lile -VV to report the added part. (This used to be commit 3c277c7a3cce14f185db7fede7c0c4ab77769670)
2007-10-10r13697: Remove unneeded header (header not present on all Linux either) for ↵Steve French1-1/+0
umount.cifs.c (This used to be commit d294b28f1c9ed931efe29ebce1c8847215fc03dc)
2007-10-10r13612: #define NO_SYSLOG is dead as a doornail.Tim Potter1-2/+0
(This used to be commit 1d23067e68f914ffb42374532b6454a0aaa7c657)
2007-10-10r13535: Fix #2353 based on a patch by William Jojo.Jeremy Allison1-3/+4
Jeremy. (This used to be commit fe63a6ee06149195032320dd0fb9b6c7dfb460d3)
2007-10-10r13486: Two more -- fix bug 3503Volker Lendecke1-0/+2
(This used to be commit 62b02a68438e0ff1119e68347b1ac3495572fa8a)
2007-10-10r13212: r12414@cabra: derrell | 2006-01-28 17:52:17 -0500Derrell Lipman4-4/+4
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-10r12912: patch from Tony Mountifield <tony@softins.co.uk> for BUG 3327 (fix ↵Gerald Carter1-0/+3
bad access to gencache.tdb after fork() in smbmount (This used to be commit 68399ce04ca4509d51950d2d7b1ed817e82bf17c)
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-10r12522: Try and fix bug #2926 by removing setlocale(LC_ALL, "C")Jeremy Allison1-1/+1
and replace calls to isupper/islower/toupper/tolower with ASCII equivalents (mapping into _w variants). Jeremy. (This used to be commit c2752347eb2deeb2798c580ec7fc751a847717e9)