summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/libsmb_dir.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-rpc_cli: pass down ndr_interface_table to cli_rpc_pipe_open_noauth().Günther Deschner2013-08-051-1/+1
| | | | | | | | Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
* Add the port argument to SMBC_server().Jeremy Allison2013-06-111-11/+11
| | | | | 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/+16
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: David Disseldorp <ddiss@samba.org>
* s3:libsmb: get rid of cli_state_remote_nameLuk Claes2012-05-281-2/+3
| | | | | 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-1/+1
| | | | | | | | | 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
* s3-lib: Fix util_cmdline which doesn't use popt.Andreas Schneider2012-02-011-1/+1
| | | | | | This creates its own header file for util_cmdline so it doesn't need to link against popt. This should fix linking on FreeBSD.
* s3:libsmb/libsmb_dir: make use of cli_state_remote_name()Stefan Metzmacher2011-07-221-2/+2
| | | | metze
* s3: make cli_resolve_path return NTSTATUSVolker Lendecke2011-07-061-24/+27
| | | | 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
* s3: Make name_resolve_bcast return sockaddr_storageVolker Lendecke2011-04-301-11/+14
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 30 20:40:46 CEST 2011 on sn-devel-104
* s3: Remove ip_sevice from get_ipc_connect_master_ipVolker Lendecke2011-04-301-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 30 18:16:28 CEST 2011 on sn-devel-104
* s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCHAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_DIRECTORY intead of aDIRAndrew Bartlett2011-04-291-3/+3
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_SYSTEM intead of aSYSTEMAndrew Bartlett2011-04-291-5/+5
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_HIDDEN intead of aHIDDENAndrew Bartlett2011-04-291-5/+5
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3-smb Use FILE_ATTRIBUTE_READONLY intead of aRONLYAndrew Bartlett2011-04-291-1/+1
| | | | | | This means we use just one constant for this file attribute. Andrew Bartlett
* s3: Fix Coverity ID 2325, RESOURCE_LEAKVolker Lendecke2011-04-221-0/+4
|
* s3-libsmb: put namequery headers to nmblib.hGünther Deschner2011-03-301-0/+1
| | | | | | | We might find a better name for it and merge other namequery related things as well here... Guenther
* s3: Fix some errno assignments in SMBC_opendir_ctxVolker Lendecke2011-03-241-13/+13
| | | | | | | Do the assignment as the last action to make sure it's not overwritten Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Mar 24 17:31:57 CET 2011 on sn-devel-104
* s3: Fix Coverity ID 2325: RESOURCE_LEAKVolker Lendecke2011-03-241-0/+4
|
* s3-rpc_client: Move client pipe functions to own header.Andreas Schneider2011-02-281-0/+1
|
* s3-libsmbclient: prefer dcerpc_srvsvc_X functions.Günther Deschner2011-01-131-4/+18
| | | | | | Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
* Fix bug #7700 - Improvement of return code of smbclientJeremy Allison2010-10-291-11/+10
| | | | | | | | | | Based on an initial patch from H Hasegawa <hasegawa.hiroyuki@fujixerox.co.jp>. Convert cli_list and associated functions to take calls that return NTSTATUS. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Oct 29 19:40:16 UTC 2010 on sn-devel-104
* Fix for bug 7755 - SMBC_getdents_ctx() ignores struct alignment rulesJeremy Allison2010-10-271-6/+13
| | | | | | | Based on a fix from Sven Neumann <s.neumann@raumfeld.com>. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Oct 27 22:02:11 UTC 2010 on sn-devel-104
* s3-popt: Only include popt-common.h when needed.Andreas Schneider2010-08-051-0/+1
|
* s3: Convert cli_list() to return NTSTATUSVolker Lendecke2010-08-041-8/+11
| | | | If needed, the callback functions can count themselves
* s3: Remove a typedef (struct file_info)Volker Lendecke2010-07-271-2/+2
|
* s3: Fix a crash in libsmbclient used against the OpenSolaris CIFS serverVolker Lendecke2010-01-161-1/+1
| | | | | | A user has sent me a sniff where the OpenSolaris CIFS server returns "32" in totalentries, but the array in ctr only contains 15 entries. Look at the right delimiter for walking the array.
* s3-rpc: Avoid including every pipe's client and server stubs everywhere in ↵Günther Deschner2009-11-261-1/+1
| | | | | | samba. Guenther
* Ensure all callers to the rpc_client/cli_pipe functions correctlyJeremy Allison2009-11-121-1/+1
| | | | | initialize return variables. Jeremy.
* Fix bug 6880 - cannot list workgroup serversJeremy Allison2009-11-091-5/+14
| | | | | | | reported by Alban Browaeys <prahal@yahoo.com> with fix. Revert 2e989bab0764c298a2530a2d4c8690258eba210c with extra comments - this broke workgroup enumeration. Jeremy.
* Second part of fix for bug #6235 - domain enumeration breaks if master ↵Jeremy Allison2009-09-281-1/+1
| | | | | | | browser has space in name. Ensure we ask for the #20 name as we're using it as a server. Jeremy.
* Added prefer_ipv4 bool parameter to resolve_name().Jeremy Allison2009-07-281-3/+3
| | | | | | | | | | W2K3 DC's can have IPv6 addresses but won't serve krb5/ldap or cldap on those addresses. Make sure when we're asking for DC's we prefer IPv4. If you have an IPv6-only network this prioritizing code will be a no-op. And if you have a mixed network then you need to prioritize IPv4 due to W2K3 DC's. Jeremy.
* Make cli_setatr async.Jeremy Allison2009-05-061-1/+1
| | | | Jeremy.
* Make cli_unlink async.Jeremy Allison2009-04-291-2/+2
| | | | Jeremy.
* Convert cli_rename to async.Jeremy Allison2009-04-281-2/+2
| | | | Jeremy.
* Make rmdir async.Jeremy Allison2009-04-211-2/+1
| | | | Jeremy.
* Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison2009-04-211-2/+1
| | | | Jeremy.
* [Bug 6228] SMBC_open_ctx failure due to path resolve failure doesn't set errnoDerrell Lipman2009-03-271-1/+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/+23
| | | | | | | | | 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.
* More warning fixes for Solaris.Jeremy Allison2009-02-231-1/+1
| | | | Jeremy.
* Make libsmbclient work with DFSBo Yang2009-02-201-2/+25
| | | | Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
* [Bug 6022] smbc_urlencode and smbc_urldecode were not exportedDerrell Lipman2009-01-161-1/+1
| | | | | | | | | | - Since the revamp of libsmbclient, there has still been an external declaration for smbc_urlencode and smbc_urldecode in libsmbclient.h, yet those functions were renamed and made private. The two choices were to remove the function names from libsmbclient.h or to make them public again. The reported requested that they be public. This commit makes it so. Derrell
* commit b520befe6f51644d20434add9864d7a2fa30aa2eSATOH Fumiyasu2008-12-161-6/+4
| | | | | | | | | | | | | Author: SATOH Fumiyasu <fumiyas@osstech.co.jp> Date: Wed Dec 17 00:42:25 2008 +0900 libsmbclient: Fix SIGBUS on non-x86 CPUs We must align the struct smbc_dirent in the struct SMBC_internal_data because the struct smbc_dirent has numeric values that require alignment. Signed-off-by: Derrell Lipman <derrell.lipman@unwireduniverse.com>
* Remove a static variableVolker Lendecke2008-12-131-6/+5
| | | | | | | | Derrell, please check! Thanks, Volker
* Refactoring: Change calling conventions for cli_rpc_pipe_open_noauthVolker Lendecke2008-07-201-2/+3
| | | | | Pass in ndr_syntax_id instead of pipe_idx, return NTSTATUS (This used to be commit 9abc9dc4dc13bd3e42f98eff64eacf24b51f5779)
* Replace cli_rpc_pipe_close by a talloc destructor on rpc_pipe_structVolker Lendecke2008-04-201-1/+1
| | | | (This used to be commit 99fc3283c4ecc791f5a242bd1983b4352ce3e6cf)
* Add "desthost" to rpc_pipe_clientVolker Lendecke2008-04-201-1/+1
| | | | | This reduces the dependency on cli_state (This used to be commit 783afab9c891dd7bcb78895b2a639b6f3a0edf5b)
* Use rpccli_srvsvc_NetShareEnumAll in libsmbclient.Günther Deschner2008-03-101-17/+23
| | | | | Guenther (This used to be commit 6aad05f3f12fd6b3276486f60c10f5b3fd3fa17c)
* Remove insane amount of whitespace.Günther Deschner2008-03-101-368/+368
| | | | | Guenther (This used to be commit 8216310e9f0d7dcccfe761a184a014b7b2ce03c5)