summaryrefslogtreecommitdiff
path: root/source3/libsmb/clilist.c
AgeCommit message (Collapse)AuthorFilesLines
2010-09-20s3-build: only include async headers where needed.Günther Deschner1-0/+1
Guenther
2010-08-19s3-cli: fix uninitialized variable.Günther Deschner1-1/+1
Volker, please check. Guenther
2010-08-19s3-libsmb: fix some uninitialized variables.Günther Deschner1-2/+2
Volker, please check. Guenther
2010-08-18s3: async cli_listVolker Lendecke1-396/+647
2010-08-05s3: Remove some direct cli->inbuf references in interpret_long_filenameVolker Lendecke1-2/+2
2010-08-05s3: Remove a pointless wrapper functionVolker Lendecke1-1/+1
2010-08-05s3: Explicitly pass flags2 to clistr_pull_tallocVolker Lendecke1-3/+13
Required to eventually make cli_list async
2010-08-05s3: Remove some pointless wrapper functionsVolker Lendecke1-7/+13
2010-08-04s3: Convert cli_list() to return NTSTATUSVolker Lendecke1-6/+14
If needed, the callback functions can count themselves
2010-08-04s3: Use data_blob_nullVolker Lendecke1-1/+1
2010-07-30s3: Remove "cli" from "struct finfo"Volker Lendecke1-2/+0
2010-07-27s3: Remove a typedef (struct file_info)Volker Lendecke1-7/+10
2010-06-28s3-libsmb: Make sure that finfo is initialized.Andreas Schneider1-0/+2
Found by clang-analyzer.
2010-05-22s3: Remove unreachable codeVolker Lendecke1-1/+0
2009-11-02Convert from numbers to correct SMB_FIND_XX constant names.Jeremy Allison1-8/+12
Jeremy.
2009-03-12Remove the static "struct client_connection" mess which is part ofJeremy Allison1-4/+1
the problem that stops libsmbclient being thread safe. Subsidiary DFS connections are now hung off a list inside the cli_state struct. Much more to do in order to get libsmbclient to thread safety, but this is a good start. Jeremy.
2009-01-26Decouple clistr_pull from struct cli_state->inbufVolker Lendecke1-5/+5
2008-12-16(Fixed) Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Kai Blin1-4/+5
segmentation fault (with NAS-BASIC server).
2008-12-16Revert "Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Jeremy Allison1-24/+683
segmentation fault (with NASBASIC server)." Error in commit ! This reverts commit bbd5824140992ea457d4270ee77018ebb367abc9.
2008-12-16Final part of fix for bug #5953 - smbclient crashes: cli_list_new ↵Kai Blin1-683/+24
segmentation fault (with NASBASIC server).
2008-12-08Fix bug #5953 - smbclient crashes: cli_list_new segmentation fault.Jeremy Allison1-1/+1
Jeremy.
2008-02-28Fix from Guenter Kukkukk <linux@kukkukk.com> to fix listing againstJeremy Allison1-1/+15
OS/2 servers. OS/2 returns eclass == ERRDOS && ecode == ERRnofiles for a zero entry directory listing. Jeremy. (This used to be commit b34da627053581a9584367e177566d4a2cef7e82)
2008-02-08We don't need the extra null termination - we'veJeremy Allison1-9/+4
already got this in the cli_receive_trans calls. Jeremy. (This used to be commit 99424bba7bb45b05d970bab4a5e93f2cb636fcbb)
2008-02-08Make clilist work again with OS/2 (kukks help!).Jeremy Allison1-1/+17
Jeremy. (This used to be commit 2e27309401faa554620886b0e369db9d9c08e4fd)
2008-02-08From kukks - prevent crashes if finfo.name == NULL.Jeremy Allison1-0/+11
Jeremy. (This used to be commit 101f194795f87c709abfdfbcde710131a88f9d20)
2008-02-08Try and fix length and finfo calls for older clients. WorkingJeremy Allison1-7/+21
on issues reported by kukks. Jeremy. (This used to be commit dcd77dd4f480db3273a56c5740b6e5d78f8be4a9)
2007-12-26Add SMB encryption. Still fixing client decrypt butJeremy Allison1-2/+2
negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
2007-12-08Fix C++ warningsVolker Lendecke1-1/+1
(This used to be commit 01a5c3ea4bf18d99ca1c35e8c38367046e4c867b)
2007-12-06Don't understand this. I have no changes here....Jeremy Allison1-33/+64
Jeremy. (This used to be commit 49534432d4c63d0dfd7bf080c30adecef06deade)
2007-12-05Fix path length limits on cli_list (outgoing. IncomingJeremy Allison1-5/+16
will be fixed with pstring elimination). Jeremy. (This used to be commit cd43b93d405bf892d1d8941b2d1e64d7d53adf69)
2007-11-29Remove pstrings. Ensure we validate offsets.Jeremy Allison1-64/+132
Jeremy. (This used to be commit ff06cc34e66a18ba71dd54f6c78b05a45b9f2d85)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-2/+2
bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
2007-10-10[GLUE] Rsync SAMBA_3_2_0 SVN r25598 in order to create the v3-2-test branch.Gerald (Jerry) Carter1-2/+2
(This used to be commit 5c6c8e1fe93f340005110a7833946191659d88ab)
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-10r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison1-2/+2
to all callers of smb_setlen (via set_message() calls). This will allow the server to reflect back the correct encryption context. Jeremy. (This used to be commit 2d80a96120a5fe2fe726f00746d36d85044c4bdb)
2007-10-10r21768: Fix the client dfs code such that smbclient canJeremy Allison1-7/+3
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-10r18011: Should fix bug 3835.Derrell Lipman1-4/+11
Jeremy: requires your eyes... If the remote connection timed out while cli_list() was retrieving its list of files, the error was not returned to the user, e.g. via smbc_opendir(), so the user didn't have a way to know to set the timeout longer and try again. This problem would occur when a very large directory is being read with a too-small timeout on the cli. Jeremy, although there were a couple of areas that needed to be handled, I needed to make one change that you should bless, in libsmb/clientgen.c. It was setting cli->smb_rw_error = smb_read_error; but smb_read_error is zero, so this had no effect. I'm now doing cli->smb_rw_error = READ_TIMEOUT; instead, and according to the OP, these (cumulative) changes (in a slightly different form) solve the problem. Please confirm this smb_rw_error change will have no other adverse effects that you can see. Derrell (This used to be commit fa664b24b829f973156486896575c1007b6d7b01)
2007-10-10r17800: Start using struct timespec internally for file timesJeremy Allison1-11/+13
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-10r17761: Handle times consistently across all client utils.Jeremy Allison1-16/+2
Fixes bugs reported in libsmbclient. Jeremy. (This used to be commit 42a417fb75313b093948602c3be8e2f386048b5f)
2007-10-10r17333: Some C++ warningsVolker Lendecke1-2/+3
(This used to be commit be9aaffdaccae06c8c035eaf31862e34b7cfbe38)
2007-10-10r16541: Fix #3862 reported by jason@ncac.gwu.edu.Jeremy Allison1-3/+0
Jeremy. (This used to be commit 09e11dcb2304eec9656e76c24921c82f4a870914)
2007-10-10r15997: Fix bug in OS/2 Warp - it doesn't set the ff_lastJeremy Allison1-1/+1
offset correctly when doing info level 1 directory scans. Thanks to Guenter Kukkukk <Guenter.Kukkukk@kukkukk.com> for reporting this problem and testing the fix. Jeremy. (This used to be commit 65d4dfbd6045a4e3f9eaf520c70ef29ff7ddee82)
2007-10-10r13915: Fixed a very interesting class of realloc() bugs found by Coverity.Jeremy Allison1-11/+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-10r13316: Let the carnage begin....Gerald Carter1-1/+5
Sync with trunk as off r13315 (This used to be commit 17e63ac4ed8325c0d44fe62b2442449f3298559f)
2007-10-10r12758: r12127@cabra: derrell | 2006-01-03 15:22:18 -0500Derrell Lipman1-5/+1
remove old superfluous comment and ifdef (This used to be commit ee7fcb43ad456929f1f005f47c52a4b4d46c5087)
2007-10-10r12275: Fix memory leak found by Mikhail Kshevetskiy <kl@laska.dorms.spbu.ru>Jeremy Allison1-2/+14
and followed up by derrell@samba.org. Jeremy. (This used to be commit 5cab88f1444177129bb5521ccc4afd8869e9bf25)
2007-10-10r11511: A classic "friday night check-in" :-). This moves muchJeremy Allison1-7/+7
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-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-10r7157: Ensure we abort a directory listing if we see the sameJeremy Allison1-0/+7
name twice between packets. Jeremy. (This used to be commit f9063b383ed2c53841ac27691b6a593b80c20b12)