summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/libsmb_file.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:libsmb: SMBC_getatr() if no method worked, try all methods again on next ↵Gregor Beck2013-10-301-3/+5
| | | | | | | | attempt Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: SMBC_getatr use pathinfo3 for second tryGregor Beck2013-10-301-0/+13
| | | | | | | | | The pathinfo2 call might fail against NetApp because it is sending broken packages. Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: SMBC_getatr do not let ino undefined on successGregor Beck2013-10-301-0/+3
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: SMBC_getatr try pathinfo2 only onceGregor Beck2013-10-301-1/+2
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* Fix some blank line endingsVolker Lendecke2013-06-211-7/+7
| | | | | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Fri Jun 21 19:57:06 CEST 2013 on sn-devel-104
* Add the port argument to SMBC_server().Jeremy Allison2013-06-111-1/+1
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* Add the ability to parse out the port to SMBC_parse_path().Jeremy Allison2013-06-111-0/+12
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* s3:libsmb: get rid of cli_state_capabilitiesLuk Claes2012-05-281-2/+2
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-061-4/+4
| | | | | | | | | Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
* Move the callers that need to use the new cli_open() back to callingJeremy Allison2011-12-031-2/+2
| | | | it from cli_openx().
* Rename cli_open -> cli_openx. Prelude to replacing generic cli_open()Jeremy Allison2011-12-031-2/+2
| | | | with a call that uses NTCreateX in preference to OpenAndX.
* s3:libsmb/libsmb_*: make use of cli_state_capabilities()Stefan Metzmacher2011-08-021-1/+1
| | | | metze
* s3-libsmb/libsmb_file.c: replace cli_read_old() with cli_read()Björn Baumbach2011-07-231-5/+5
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: replace cli_read() with cli_read_old()Björn Baumbach2011-07-201-1/+1
| | | | | | Will introduce new cli_read() function. Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: make cli_resolve_path return NTSTATUSVolker Lendecke2011-07-061-21/+33
| | | | This looks larger than it is. No parameters needed changing.
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* More const fixes for compiler warnings from the waf build.Jeremy Allison2011-05-051-1/+1
|
* Fix many const compiler warnings.Jeremy Allison2011-05-051-1/+1
|
* s3: Use cli_writeall instead of cli_writeVolker Lendecke2011-04-261-7/+7
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Make cli_setpathinfo_basic use cli_setpathinfoVolker Lendecke2011-01-171-6/+6
|
* s3: Rename cli_setpathinfo->cli_setpathinfo_basicVolker Lendecke2011-01-171-6/+6
|
* s3: Convert cli_qfileinfo_basic to cli_qfileinfoVolker Lendecke2010-10-241-3/+4
|
* s3: Rename cli_fileinfo() to cli_fileinfo_basic()Volker Lendecke2010-10-241-2/+2
|
* s3: Convert cli_qpathinfo2 to cli_qpathinfo_sendVolker Lendecke2010-07-261-2/+2
|
* s3: Fix some nonempty blank linesVolker Lendecke2009-11-211-137/+87
|
* Make cli_ftruncate async. Also add a simple test.Jeremy Allison2009-06-051-1/+1
| | | | Jeremy.
* Make cli_setatr async.Jeremy Allison2009-05-061-1/+1
| | | | Jeremy.
* Make cli_setattrE async.Jeremy Allison2009-05-061-2/+2
| | | | Jeremy.
* Make cli_getatr() async.Jeremy Allison2009-05-051-1/+1
| | | | Jeremy.
* Make cli_getattrE async.Jeremy Allison2009-05-051-3/+2
| | | | Jeremy.
* Cause cli_close to return an NTSTATUS.Jeremy Allison2009-04-301-1/+1
| | | | Jeremy.
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-301-7/+9
| | | | | | | Convert all uses of cli_open(), cli_nt_createXXX to NTSTATUS versions. This is smaller than it looks, it just fixes a lot of old code. Next up, ensure all cli_XX functions return NTSTATUS. Jeremy.
* [Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errnoDerrell Lipman2009-03-271-0/+7
| | | | | | | | | | | | Fixed. It turns out there were a number of places where cli_resolve_path() was called and the error path upon that function failing did not set errno. There were a couple of places the failure handling code did set errno to ENOENT, so I made them all consistent, although I think better errno choices for this condition exist, e.g. EHOSTUNREACH. Derrell
* Remove the global "struct cm_cred_struct" and associated calls, makeJeremy Allison2009-03-171-14/+21
| | | | | | | | | callers pass in a struct user_auth_info * instead. This commit causes smbc_set_credentials() to print out a message telling callers to use smbc_set_credentials_with_fallback() instead, as smbc_set_credentials() has a broken API (no SMBCCTX * pointer). No more global variables used in the connection manager API for client dfs calls. Jeremy.
* Make libsmbclient work with DFSBo Yang2009-02-201-1/+1
| | | | Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
* Error return is False, not -1Derrell Lipman2008-10-241-3/+3
| | | | | | | | | - There were a few places in SMBC_getatr() that returned -1 instead of a boolean. -1 was intended to mean error, but that's what False is for, and the usages of this function assume that it returns a boolean with False as the error condition. Derrell
* The buf in the smbclient write function should be const.Andreas Schneider2008-07-161-1/+1
| | | | | | | | | As we try to provide POSIX function, we should use const like all other POSIX function. Signed-off-by: Andreas Schneider <anschneider@suse.de> Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com> (This used to be commit 36e5df59544de9df140ca40ad0efd77afd8e1468)
* Continued revamping of libsmbclient.Derrell Lipman2008-03-031-4/+4
| | | | | | | | | | | | | | - James suggested using gcc's "deprecated" attribute to mark the context structure fields to generate warnings. This creates a scenario with the best of all worlds. I'm able to move to an organization that more easily allows future enhancements, while avoiding any mandatory changes by applications. Thanks, James! - Updated WHATSNEW.txt so that it accurately reflects the current state of affairs. Derrell (This used to be commit a67f96fbe9683b46c2149f7cb439d13f7f0e6ecd)
* Additional revamped libsmbclient documentationDerrell Lipman2008-03-011-194/+199
| | | | | | | | | - Ensured that all public functions have documentation in libsmbclient.h - Reformatted for "proper" indentation - Re-added temporarily-disabled alternate authentication function capability Derrell (This used to be commit 64b7150d92849a1e1e2416b9dcc12fae8d6bea99)
* Modified revamp of the libsmbclient interface.Derrell Lipman2008-03-011-18/+18
| | | | | | | | | | | | | | | | | | | | | Given the tacit (if that) approval by some people, and clear disapproval by others for my proposed clean-up and reorganization of libsmbclient, I've come up with a slightly different approach. This commit changes back to the original libsmbclient.h SMBCCTX structure which will maintain ABI compatibility. I retain, here, the setter and getter functions which all new code should use. Older programs already compiled should continue to work fine. Older programs being recompiled will encounter compile-time errors (intentionally!) so that the code can be corrected to use the setter/getter interfaces. Although this doesn't clean up the interface in the way I had wanted, the code reorganization and requirement for new programs to use the setters and getters allows future progress to be made on libsmbclient without further muddying up the interface, while retaining the ABI compatibility that was the big issue causing disapproval. I hope that this compromise is adequate. Derrell (This used to be commit 56429a3d60b2a48963342f6340b3c01469a892c6)
* Initial revamp of the libsmbclient interface.Derrell Lipman2008-03-011-0/+859
The libsmbclient interface has suffered from difficulty of improvement and feature enrichment without causing ABI breakage. Although there were a number of issues, the primary ones were: (a) the user of the library would manually manipulate the context structure members, meaning that nothing in the context structure could change other than adding stuff at the end; (b) there were three methods of setting options: setting bits in a flags field within the context structure, setting explicit options variables within an options structure in the context structure, and by calling the smbc_option_set() function; (c) the authentication callback did not traditionally provide enough information to the callee which required adding an option for a callback with a different signature, and now there are requests for even more information at the callback, requiring yet a third signature and option to set it (if we implement that feature). This commit provides a reorganization of the code which fixes (a) and (b). The context structure is now entirely opaque, and there are setter and getter functions for manipulating it. This makes maintaining ABI consistency much, much easier. Additionally, the options setting/getting has been unified into a single mechanism using smbc_option_set() and smbc_option_get(). Yet to be completed is a refactoring of the authentication callback (c). The test programs in examples/libsmbclient have been modified (if necessary; some applications require no changes at all) for the new API and a few have been minimally tested. Derrell (This used to be commit d4b4bae8ded824d06ad5ab0e219f71187ee5c771)