summaryrefslogtreecommitdiff
path: root/source3/libsmb/clifile.c
AgeCommit message (Collapse)AuthorFilesLines
2008-09-09make smb_bytes_push_str publicVolker Lendecke1-1/+1
(This used to be commit d611f599b45ad9dad1027a16a0e8da7d4b96e608)
2008-09-01Fix typoVolker Lendecke1-1/+1
(This used to be commit 544d1fd19a7e85af5f522c5b6b4b68c6beb093a6)
2008-08-28Add cli_pull_replyVolker Lendecke1-5/+15
Along the lines of cli_request_send this abstracts away the smb-level buffer handling when parsing replies we got from the server. (This used to be commit 253134d3aaa359fdfb665709dd5686f69af7f8fd)
2008-08-28Remove cli->event_ctx, pass it explicitlyVolker Lendecke1-11/+33
Storing the event_context as permanent state in struct cli_state creates more complex code than necessary IMO. (This used to be commit debb37f703075008e5ea7d34d214cfa4d0f8f916)
2008-08-28Add async open&xVolker Lendecke1-33/+117
(This used to be commit faf353edd60967efac4d5c222db14fa730866273)
2008-08-28Add async cli_closeVolker Lendecke1-13/+38
(This used to be commit f84a2b5dbf8a072a9e356fa39523f65d042a2643)
2008-08-01Fix a typoVolker Lendecke1-5/+5
(This used to be commit 37bd2815c70176046bbe0232222b9f59dfa159c4)
2008-02-26add a function to truncate a file to a specified sizeDerrell Lipman1-0/+49
(This used to be commit 7e5752812d6d9e3bcf9a545cbdcf3afe2175dbc4)
2008-02-20Fix memory leaks on error pathTim Potter1-1/+8
(This used to be commit 47dd0700b4320bf5ac9a80e71ae82d82d4554e6a)
2007-12-26Add SMB encryption. Still fixing client decrypt butJeremy Allison1-22/+22
negotiation works. Jeremy. (This used to be commit d78045601af787731f0737b8627450018902b104)
2007-12-08Fix C++ warningsVolker Lendecke1-9/+9
(This used to be commit 01a5c3ea4bf18d99ca1c35e8c38367046e4c867b)
2007-12-05Remove arbitrary 1k limit on pathnames. Malloc them.Jeremy Allison1-181/+281
Jeremy. (This used to be commit 71770b4c1d021d829deeb53a6ea3b747fce55c84)
2007-12-01Fix some C++ warningsVolker Lendecke1-1/+1
(This used to be commit 156c7f10bb63a610f85b52242cfd1b67bfa73c29)
2007-11-29Remove pstrings from clifile.c.Jeremy Allison1-25/+36
Jeremy. (This used to be commit d5658914c2d6ec878d9a11f8a1fa57f1697362e3)
2007-10-18RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison1-43/+43
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-22/+22
(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-10r23347: Fix Coverity 363. Dead code elimination.Jeremy Allison1-7/+3
Jeremy. (This used to be commit 4524ee2dbcd5c1c66085032de67c6d083f91cb8a)
2007-10-10r22844: Introduce const DATA_BLOB data_blob_null = { NULL, 0, NULL }; andVolker Lendecke1-1/+1
replace all data_blob(NULL, 0) calls. (This used to be commit 3d3d61687ef00181f4f04e001d42181d93ac931e)
2007-10-10r22589: Make TALLOC_ARRAY consistent across all uses.Jeremy Allison1-3/+7
Jeremy. (This used to be commit 8968808c3b5b0208cbad9ac92eaf948f2c546dd9)
2007-10-10r22391: Looks bigger than it is. Make "inbuf" availableJeremy Allison1-22/+22
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-10r21777: As Stevef requested and the Apple guys agreed, makeJeremy Allison1-3/+4
mode_t in posix_open/posix_mkdir -> 8 bytes to match the SET_UNIX_INFO_BASIC call. Steve is updating the Wikki. Jeremy. (This used to be commit 2f1c95ac7718c1d2a75367ba712edd6b57069432)
2007-10-10r21750: Sync up with SAMBA_3_0_25. Only client changes are in libsmbclientJeremy Allison1-2/+11
right now. Jeremy. (This used to be commit 6dd5f0ef0fe3a673081e16e656ca579bf50457ff)
2007-10-10r21703: fix build when O_SYNC not definedHerb Lewis1-0/+2
(This used to be commit 73b7a25ba8a2f7471c07a912da8b6968b41b4f1d)
2007-10-10r21644: Allow mkdir on platforms with no O_DIRECTORY.Jeremy Allison1-9/+17
Add proper debug to all possible setfilepathinfo functions. Jeremy. (This used to be commit 3c47a5ef258d536504759a02f6d84c0ab0af7224)
2007-10-10r21643: Put the correct bits on the wire for posix_mkdir.Jeremy Allison1-1/+2
We're not yet deleting open files on unlink. Investigating... Jeremy. (This used to be commit 334b34f131578c2a889caa90aa2425f41883cafd)
2007-10-10r21640: Fix the build for broken platoforms without O_DIRECT or O_DIRECTORY.Jeremy Allison1-0/+9
Jeremy. (This used to be commit 6a0f6fde0a19bfb4af4c7fa6f29d7015e884d86e)
2007-10-10r21639: Add in implementations of POSIX open/mkdir/unlink/rmdir.Jeremy Allison1-0/+176
Jeremy. (This used to be commit 6457d66b9a04c421fc43e131c825c7555c16a1ea)
2007-10-10r21604: I got this wrong also in libsmb :-(.Jeremy Allison1-0/+2
Jeremy. (This used to be commit 4a04555e23b5fa53fbeb5b65a7c83cff1b0f9640)
2007-10-10r20744: Fix the build (I missed some chkpth -> checkpath renames).Jeremy Allison1-1/+1
Jeremy. (This used to be commit 89b7a0630de0bd95a56263b36d433b4e73517a70)
2007-10-10r18009: Fixes bug 4026.Derrell Lipman1-14/+18
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-10r17902: Fix possible null deref caught by Stanford checker.Jeremy Allison1-1/+3
Jeremy. (This used to be commit e8b0649fe167c3446eb6121ed666254fdf53aa58)
2007-10-10r17800: Start using struct timespec internally for file timesJeremy Allison1-3/+4
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-10r17333: Some C++ warningsVolker Lendecke1-2/+2
(This used to be commit be9aaffdaccae06c8c035eaf31862e34b7cfbe38)
2007-10-10r15028: Fix logic error checking valid args to POSIX lockJeremy Allison1-1/+1
call. Jeremy. (This used to be commit 44b0d856ae867d1c407507dcf7940dd39f4f963a)
2007-10-10r15018: Merge Volker's ipc/trans2/nttrans changes overJeremy Allison1-1/+104
into 3.0. Also merge the new POSIX lock code - this is not enabled unless -DDEVELOPER is defined. This doesn't yet map onto underlying system POSIX locks. Updates vfs to allow lock queries. Jeremy. (This used to be commit 08e52ead03304ff04229e1bfe544ff40e2564fc7)
2007-10-10r11511: A classic "friday night check-in" :-). This moves muchJeremy Allison1-8/+8
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-10r11420: Fix issue pointed out by Dina Fine <dina@exanet.com>. We canJeremy Allison1-12/+22
only tell at parse time from the wire if an incoming name has wildcards or not. If it's a mangled name and we demangle the demangled name may contain wildcard characters. Ensure these are ignored. Jeremy. (This used to be commit 4cd8e2a96b98ff711905e8c6f416b22440c16062)
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-10r8219: Merge the new open code from HEAD to 3.0. Haven't yet run the tortureJeremy Allison1-1/+1
tests on this as it's very late NY time (just wanted to get this work into the tree). I'll test this over the weekend.... Jerry - in looking at the difference between the two trees there seem to be some printing/ntprinting.c and registry changes we might want to examine to try keep in sync. Jeremy. (This used to be commit c7fe18761e2c753afbffd3a78abff46472a9b8eb)
2007-10-10r8184: fix build issue on Solaris in smbclientGerald Carter1-0/+5
(This used to be commit 137d270ee3bec297732380050bb53cf6b5487914)
2007-10-10r6753: Fixes bug 2663. cli_getattrE() and cli_setattrE() were not formatting orDerrell Lipman1-6/+6
parsing the timestamp values correctly. It turns out they were using the incorrect function for formatting and parsing values. Thanks to Satwik Hebbar for reporting this and testing the patch. (This used to be commit 9144778d09c1650a775fdd08767ac65189fad457)
2007-10-10r6392: - Fixes bug 2564: when smbc_opendir() was called with a file rather thanDerrell Lipman1-2/+2
a directory, the errno returned could end up as ENOENT rather than ENOTDIR. - Fixes some compiler warnings which showed up on IRIX, as reported by James Peach. (This used to be commit 615a62b21f8d2f7f97bde2f166ddd6849d39b95c)
2007-10-10r5968: derrell's large file fix for libsmbclient (BUG 2505)Gerald Carter1-2/+2
(This used to be commit 85be4c5df398faa6c5bfacd1f9d2f12c39d411e1)
2007-10-10r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison1-3/+3
allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
2007-10-10r3714: Getfacl now seems to work on files and directories. Next do setfaclJeremy Allison1-1/+2
and port to Samba4. Jeremy. (This used to be commit 4d52bf7c8b3147dd4f0d3081fbf9a1f5ebd246a1)
2007-10-10r3713: Implementation of get posix acls in UNIX extensions. Passes valgrind.Jeremy Allison1-0/+48
Need to add printout functions in client and set posix acl in server. SteveF - take a look at this for the cifsfs client ! Once this is working and tested the next step is to write this up for the UNIX extensions spec. documents. Jeremy. (This used to be commit 1bd3f133442a472b4718b94a636f2fec89a2e0dc)
2007-10-10r2665: Ensure the UNIX info level returned enough data.Jeremy Allison1-0/+6
Jeremy. (This used to be commit 8a7741dddf17dca136144fb26e2d7a42d313467a)
2007-10-10r2651: Added 'stat' command to smbclient to exercise the UNIX_FILE_BASICJeremy Allison1-1/+130
info level. Outputs data on the file in the same format the the stat command in Linux. Should be useful to people wanting to learn how to parse the UNIX extension output. Yes I will add the docs later :-). Jeremy. (This used to be commit b25cc596417d29815814c3968ac2627bf59ffc0b)