summaryrefslogtreecommitdiff
path: root/examples/libsmbclient
AgeCommit message (Collapse)AuthorFilesLines
2008-01-10Remove unused string.Günther Deschner1-2/+2
Guenther (This used to be commit 88d6683872f4bb9c3074280f385f73c7af9de784)
2008-01-09Fix build warning for libsmbclient example.Günther Deschner1-0/+2
Guenther (This used to be commit 8f411753b2130e9c1f260a15d031f57ba07b62a1)
2007-10-10r24388: - ACL retrieval provided incomplete information because the buffer ↵Derrell Lipman1-4/+6
pointer was incremented too far in some circumstances. In these cases, only the first of multiple concatenated strings would be seen. - Working on bug 4649 pertaining to delete an ACL, this fixes the reported crash. It appears to have been an incomplete switchover from malloc to talloc, as the memory was still being freed with SAFE_FREE. Deleting ACLs still doesn't work. Although a valid request is sent to the server and a SUCCESS response is returned, the method that's used in libsmbclient for deleting ACLs seems to be incorrect. In looking at the samba4 torture tests, it appears that we should be turning on the INHERIT flag if we want to delete the ACL. (I could use some assistance on the proper flags to send, from anyone familiar with this stuff.) - Apply patch from SATOH Fumiyasu to fix bug 4750. smbc_telldir_ctx() was not returning a value useful to smbc_lseekdir_ctx(). Derrell (This used to be commit 2ac502e29bd8390252fe4ae8344faab49ca01ff5)
2007-10-10r23785: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell10-20/+10
(This used to be commit d0e89d246d8e5e64196d6c1d16d39a70579ca42f)
2007-10-10r23779: Change from v2 or later to v3 or later.Jeremy Allison10-10/+10
Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10r22914: - Fixes bug 4599. A missing <code>if</code> statement forced ↵Derrell Lipman2-0/+83
subseqeuent attempts to set attributes to fail. - I also noticed that missing attributes were setting an invalid return string by getxattr(), e.g. if there was not group, the return string had "GROUP:;" instead of excluding the GROUP attribute entirely as it should. The big problem with the way it was, is that the string could not then be passed to setxattr() and parsed. (This used to be commit 7213b5ebec8cd7f1955f5aa8ee4050c39cd11ed1)
2007-10-10r22130: - Ensure that the libsmbclient example programs link with the ↵Derrell Lipman1-10/+11
libsmbclient library that's part of the current tree, not with whatever happens to have been previously installed. (This used to be commit c65621e0b7690b90beb420f829c769c7d28147f5)
2007-10-10r18012: Should fix bug 4018.Derrell Lipman1-0/+1
NetApp filers expect paths in Open AndX Request to have a leading slash. Windows clients send the leading slash, so we should too. (This used to be commit fc5b6e4bd8a67994b0c56d1223c74d064164420f)
2007-10-10r18011: Should fix bug 3835.Derrell Lipman1-10/+12
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-10r18009: Fixes bug 4026.Derrell Lipman1-2/+13
This completes the work Jeremy began last week, disambiguating the meaning of c_time. (In POSIX terminology, c_time means "status Change time", not "create time".) All uses of c_time, a_time and m_time have now been replaced with change_time, access_time, and write_time, and when creation time is intended, create_time is used. Additionally, the capability of setting and retrieving the create time have been added to the smbc_setxattr() and smbc_getxattr() functions. An example of setting all four times can be seen with the program examples/libsmbclient/testacl with the following command line similar to: testacl -f -S "system.*:CREATE_TIME:1000000000,ACCESS_TIME:1000000060,WRITE_TIME:1000000120,CHANGE_TIME:1000000180" 'smb://server/share/testfile.txt' The -f option turns on the new mode which uses full time names in the attribute specification (e.g. ACCESS_TIME vs A_TIME). (This used to be commit 8e119b64f1d92026dda855d904be09912a40601c)
2007-10-10r16550: Fix bug 3866. Thanks for the report!Derrell Lipman1-2/+2
Although I've never met a computer or compiler that produced pointers to functions which are a different size than pointers to data, I suppose they probably exist. Assigning a pointer to a function is technically illegal in C anyway. Change casts of the option_value based on the option_name to use of variable argument lists. For binary compatibility, I've maintained but deprecated the old behavior of debug_stderr (which expected to be passed a NULL or non-NULL pointer) and added a new option debug_to_stderr which properly expects a boolean (int) parameter. Derrell (This used to be commit c1b4c510530ca3118d1eccb9615a8cad732c7373)
2007-10-10r14664: r13868@cabra: derrell | 2006-03-22 17:04:30 -0500Derrell Lipman2-3/+49
Implement enhancement request 3505. Two additional features are added here. There is now a method of saving an opaque user data handle in the smbc_ context, and there is now a way to request that the context be passed to the authentication function. See examples/libsmbclient/testbrowse.c for an example of using these features. (This used to be commit 203b4911c16bd7e10198a6f0e63960f2813025ef)
2007-10-10r12852: r12150@cabra: derrell | 2006-01-11 13:21:14 -0500Derrell Lipman1-30/+15
Although RTLD_NEXT was not working properly a number of years ago, it seems to be now. Replace dlopen(/lib/libc...) with direct use of RTLD_NEXT (This used to be commit 2b4866500640891fcb1ca7b24997df17f1b077cc)
2007-10-10r12759: r12128@cabra: derrell | 2006-01-07 15:34:01 -0500Derrell Lipman10-287/+479
Incorporate a number of changes suggested by David Collier-Brown Thanks, David! (This used to be commit 0ae65b9af566e02eece9bb7865047c037468d470)
2007-10-10r12757: r12126@cabra: derrell | 2006-01-03 15:21:36 -0500Derrell Lipman1-2/+11
added flag to not request authentication information (This used to be commit 8396c4b26c9911887ed1c1ce17c31af462ee6883)
2007-10-10r12579: r12122@cabra: derrell | 2005-12-29 12:03:00 -0500Derrell Lipman1-1/+1
allow for arbitrary option value types (This used to be commit 64c8e32b6382e48bce5c1f18179e66ca765a70af)
2007-10-10r12576: r12115@cabra: derrell | 2005-12-29 11:16:03 -0500Derrell Lipman1-12/+34
bug (enhancement) #2651: add option to log debug messages to stderr instead of stdout (This used to be commit 4182eb99af5b343291a661a87d08edd91fd09a7a)
2007-10-10r12468: r12033@cabra: derrell | 2005-12-24 21:03:45 -0500Derrell Lipman1-0/+72
actually add the new test program (This used to be commit e3bab0cc437f3c51c74e438d8d76ffd8afe8644c)
2007-10-10r12467: r12029@cabra: derrell | 2005-12-24 20:25:59 -0500Derrell Lipman2-1/+6
add another libsmbclient test program (This used to be commit 133cd3952b7f5fc9e9ca8d82a33ed1272067a6c8)
2007-10-10r12225: r11729@cabra: derrell | 2005-12-13 22:59:45 -0500Derrell Lipman1-1/+1
1. Fix a crash bug which should have reared its ugly head ages ago, but for some reason, remained dormant until recently. The bug pertained to libsmbclient doing a structure assignment of a cli after having opened a pipe. The pipe open code makes a copy of the cli pointer that was passed to it. If the cli is later copied (and that cli pointer that was saved is no longer valid), the pipe code will cause a crash during shutdown or when the copied cli is closed. 2. The 'type' field in enumerated shares was not being set correctly with the new RPC-based mechanism for enumerating shares. (This used to be commit 62a02b8f2a1fcb66881a9c9636e0b27e3049c5a1)
2007-10-10r12098: r10797@cabra: derrell | 2005-12-06 12:09:00 -0500Derrell Lipman2-0/+219
fixed another memory leak and reverted an (incorrect) fix from yesterday (This used to be commit 8a86d7bddc291da094d060fbe185f071ffdbddd8)
2007-10-10r12080: r10673@cabra: derrell | 2005-12-05 13:22:34 -0500Derrell Lipman1-75/+163
Correct some memory and file descriptor leaks. This should fix bugs 3257, 3267 and 3273. (This used to be commit c5781c9cf5f1f8297e084fbe2c4a22257420a447)
2007-10-10r11130: r10092@cabra: derrell | 2005-10-17 15:29:03 -0400Derrell Lipman1-0/+74
let's now actually add the new test file (This used to be commit b58237f98d924752a45f689d7a9fd2e8e447c100)
2007-10-10r11129: r10090@cabra: derrell | 2005-10-17 15:26:27 -0400Derrell Lipman1-1/+6
added example to read a file and test download time (This used to be commit 4fad0c49b5bf7819d0f9782b60369c5d078c5854)
2007-10-10r7168: Updating file times from libsmbclient was not working for win98. ↵Derrell Lipman1-48/+3
Although the function that was being used to set attributes is a core protocol function (SMBsetatr = 0x09), it does not appear to work on win98. As a temporary measure, when file times are to be set, this version opens the file and uses SMBsetattrE = 0x22 instead. (The other advantage of this function over the original one is that it supports setting access time as well as modification time.) The next step, the proper solution if it can be made to work, is to write functions that use TRANS2_SET_PATH_INFO instead. (This used to be commit bab0bf7f4f9d2a4b6fcee4429094349302bbeb33)
2007-10-10r7156: file was missing; svn isn't smart enough to even notify me. sigh.Derrell Lipman1-0/+52
(This used to be commit fce48fa1b462ded1453520355bf2dce0f607b8dc)
2007-10-10r7153: add better test facilities to testutimeDerrell Lipman1-5/+5
(This used to be commit d763c739a63894d5f458f61de28b90d840bb8fe4)
2007-10-10r6501: correct deprecated lvalue casts in testsuite/libsmbclientDerrell Lipman1-1/+2
(This used to be commit 6d22c3c3434812d3a6ab7f216bec34cdb3b622a0)
2007-10-10r6157: 'editorial changes' to example codeDerrell Lipman1-1/+2
(This used to be commit fa0294ddbf7c93c24fca670b7ed52821a0507174)
2007-10-10r6151: additional examples/tests for libsmbclientDerrell Lipman4-12/+179
(This used to be commit a3bd496c921dc775b59be4ff2941f4824ffbec03)
2007-10-10r6149: Fixes bugs #2498 and 2484.Derrell Lipman5-208/+16
1. using smbc_getxattr() et al, one may now request all access control entities in the ACL without getting all other NT attributes. 2. added the ability to exclude specified attributes from the result set provided by smbc_getxattr() et al, when requesting all attributes, all NT attributes, or all DOS attributes. 3. eliminated all compiler warnings, including when --enable-developer compiler flags are in use. removed -Wcast-qual flag from list, as that is specifically to force warnings in the case of casting away qualifiers. Note: In the process of eliminating compiler warnings, a few nasties were discovered. In the file libads/sasl.c, PRIVATE kerberos interfaces are being used; and in libsmb/clikrb5.c, both PRIAVE and DEPRECATED kerberos interfaces are being used. Someone who knows kerberos should look at these and determine if there is an alternate method of accomplishing the task. (This used to be commit 994694f7f26da5099f071e1381271a70407f33bb)
2007-10-10r6126: added utility for testing smbc_stat()Derrell Lipman3-11/+130
(This used to be commit e1df648ea13651e1df3d209937034b351a7f1c2b)
2007-10-10r6108: Added smbsh/smbwrapper for Linux to example/libsmbclient tree; ↵Derrell Lipman15-61/+4094
provided more complete libsmbclient testbrowse utility (This used to be commit 15736b97c837a16d9c009b8bff18b31429ccbe83)
2004-03-19missed some of Derrel's changesGerald Carter1-1/+5
(This used to be commit 3aac1e549eaf4693ded84be432a2c94b6331ef6d)
2004-03-19This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This ↵cvs2svn Import User1-0/+91
used to be commit 73ffc394b58fa951bca444506cd9d75a159e7f11)
2004-03-19Apply some more of Derrell Lipman's changes.Richard Sharpe2-1/+96
(This used to be commit a6457e1c817663cf5f3e77e4dd431ac0d9184dc7)
2004-02-09merge from 3.0Gerald Carter1-1/+1
(This used to be commit 309a9a4cafc3c892840e28198a41973b236a528e)
2003-11-13Update Makefile ...Richard Sharpe1-2/+9
(This used to be commit b92fd87b2461dff0e05ad4a7b0a475539c21d4c0)
2003-11-13Add this to samba-head.Richard Sharpe1-0/+280
(This used to be commit d761175f131f80ae24549adca6ffc629f84a9803)
2003-11-12Add testacl.c ... from Derrell Lipman.Richard Sharpe1-0/+280
(This used to be commit af42af75a45d6e6538009694704e11eb83c88457)
2003-11-05Apply the changes that Derrell Lipman supplied ...Richard Sharpe1-2/+2
(This used to be commit 600e056a33bd658a8e0eb41af9c83d32b9e2e082)
2003-10-24Apply these patches as well ... not sure if they all build. They don't onRichard Sharpe2-5/+12
FreeBSD 4.3. They might on Linux. (This used to be commit 1f115c95d635377a36c0a3a1f56b4b8def04fd7e)
2003-07-16trying to get HEAD building again. If you want the codeGerald Carter1-1/+1
prior to this merge, checkout HEAD_PRE_3_0_0_BETA_3_MERGE (This used to be commit adb98e7b7cd0f025b52c570e4034eebf4047b1ad)
2003-03-28Fix some uncleanness with testsmbc.cRichard Sharpe1-1/+1
(This used to be commit 73ef6d35bbadc3ea549309119857effe3c1bc7ef)
2003-01-22Sync with HEAD. The -L/usr/local/lib bit looks a bit dodgy though.Tim Potter1-1/+1
(This used to be commit 81bfd9a4d9c80b87b020b998e9722750339c422d)
2003-01-22Sync with HEAD.Tim Potter2-128/+8
(This used to be commit db3901827fe776041fa38900e80ab2fab94c28a6)
2002-11-15One more small fix in tree.cRichard Sharpe1-2/+2
(This used to be commit 0674d5a2b0f7ee621940c93b3b58960efd91a763)
2002-11-15Fix some problems with tree.c reported by users.Richard Sharpe3-125/+6
(This used to be commit b0772a1a0531896d5b343863434622d4d0ff437f)
2002-11-04testsmbc should only be in examplesJelmer Vernooij1-2/+1
(This used to be commit 7aad086c9a20c4c700dfce3f81d89ab982702198)
2001-06-30Make sure we compile with gcc by default.Richard Sharpe1-0/+1
(This used to be commit 93c45024cdbbf51322106e2a5961db8c09618833)