summaryrefslogtreecommitdiff
path: root/source3/client
AgeCommit message (Collapse)AuthorFilesLines
2009-05-20Make cli_posix_open() and cli_posix_mkdir() async.Jeremy Allison1-8/+4
Jeremy.
2009-05-15Oops. Forgot to delete now unused local from the previous patch.Jeremy Allison1-2/+0
Jeremy.
2009-05-15Fix bug #6359 - smbclient -L does not list workgroup for hosts with both ↵Ole Hansen1-4/+10
IPv4 and IPv6 addresses
2009-05-15mount.cifs: directly include sys/stat.h in mtab.cJeff Layton1-0/+1
This file is mysteriously getting included when built via the makefile, but when you try to build mtab.o by hand it fails to build. Directly include it to remove any ambiguity. Signed-off-by: Jeff Layton <jlayton@redhat.com>
2009-05-14Maximum password length check too short in mount.cifsSteve French1-2/+2
Windows allows up to 127 byte passwords, and we using a 64 byte limit in most places and a 16 byte limit when using the "pass=" mount option Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@us.ibm.com>
2009-05-06Make cli_setatr async.Jeremy Allison1-2/+2
Jeremy.
2009-05-05Make cli_getatr() async.Jeremy Allison1-1/+3
Jeremy.
2009-05-05Make cli_getattrE async.Jeremy Allison1-3/+3
Jeremy.
2009-05-03Fix some warnings due to uint16_t!=-1 always being trueVolker Lendecke1-1/+1
2009-04-30Cause cli_close to return an NTSTATUS.Jeremy Allison3-6/+7
Jeremy.
2009-04-30Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison3-27/+27
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.
2009-04-29Make cli_unlink async.Jeremy Allison1-2/+2
Jeremy.
2009-04-29More async calls in libsmb/clifile.cJeremy Allison1-1/+1
Jeremy.
2009-04-28Convert cli_rename to async.Jeremy Allison1-1/+1
Jeremy.
2009-04-28Convert cli_posix_unlink() and cli_posix_rmdir()Jeremy Allison1-2/+2
to async. First trans calls I've done. Jeremy.
2009-04-22Make dskattr async.Jeremy Allison1-1/+1
Jeremy.
2009-04-22Make cli_chkpath async.Jeremy Allison2-4/+4
Jeremy
2009-04-21Make rmdir async.Jeremy Allison1-1/+1
Jeremy.
2009-04-21Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison2-2/+2
Jeremy.
2009-04-20Remove smb_mkstemp() - libreplace will now provide a secure mkstemp() ifJelmer Vernooij1-1/+1
the system one is broken.
2009-03-17Remove the global "struct cm_cred_struct" and associated calls, makeJeremy Allison1-38/+40
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.
2009-03-14Fix #3954Volker Lendecke1-1/+2
2009-03-12Remove the static "struct client_connection" mess which is part ofJeremy Allison1-11/+11
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-03-12Revert "s3:libsmb: add an option to cli_push to let the caller provide the ↵Stefan Metzmacher1-6/+4
buffers" This reverts commit 9579a6f193f570e4ce2af80f4aac7c2f25ae5b22. It's confusing to have a boolean to alter the behavior of cli_push and as the new feature isn't used yet I revert it. We can readd a extra function later. metze
2009-03-10s3:libsmb: add an option to cli_push to let the caller provide the buffersStefan Metzmacher1-4/+6
metze
2009-03-05Fix bug #6161 - smbclient corrupts source path in tar modeJeremy Allison1-0/+16
This was my fault. I broke the smbclient tar argument processing in creating the string for chdir when removing pstrings. Jeremy.
2009-02-24Fix guest mountsSteve French1-1/+3
guest session setup, login (user id) as anonymous. This patch is for samba bugzilla bug 4640. Signed-off-by: Shirish Pargaonkar <shirishp@us.ibm.com> Acked-by: Jeff Layton <jlayton@redhat.com> Signed-off-by: Steve French <sfrench@samba.org>
2009-02-24s3:mount.cifs: make "mount.cifs -V" print the version, not usage.Michael Adam1-5/+28
Also make "mount.cifs -h" not exit with error exit code but with return code 0. Michael
2009-02-24s3:mount.cifs: don't error exit on explicitly requested help...Michael Adam1-2/+1
Michael
2009-02-23More warning fixes for Solaris.Jeremy Allison1-3/+3
Jeremy.
2009-02-13Replace get_myname() with the talloc version from v3-3-testVolker Lendecke1-1/+1
2009-02-12Fix Coverity IDs 879 and 880 (RESOURCE_LEAK, REVERSE_INULL)Volker Lendecke1-4/+7
2009-02-06mount.cifs: initialize rc to 0 in mainJeff Layton1-1/+1
The value of rc in main() isn't initialized in the declaration. This wasn't a problem before, but Shirish's fakemount patch can make it so that we return the uninitialized variable if the -n flag is used. Fix this by initializing rc to 0. Signed-off-by: Jeff Layton <jlayton@redhat.com>
2009-02-06mount.cifs: add fakemount (-f) and nomtab (-n) flags to mount.cifsShirish Pargaonkar1-3/+9
...so that these options work correctly when passed in by mount(8).
2009-02-05umount.cifs: clean-up entries in /etc/mtab after unmountShirish Pargaonkar1-1/+33
This patch removes the remaining entry in /etc/mtab after a filesystem is unmounted by canonicalizing the mountpoint supplied on the command line. Please refer to bug 4370 in samba bugzilla.
2009-01-30Make cli_tcon_andx asyncVolker Lendecke1-3/+6
2009-01-15s3: make better use of ccache by not including version.h in every C-file.Michael Adam1-1/+1
version.h changes rather frequently. Since it is included via includes.h, this means each C file will be a cache miss. This applies to the following situations: * When building a new package with a new Samba version * building in a git branch after calling mkversion.sh after a new commit (i.e. virtually always) This patch improves the situation in the following way: * remove inlude "version.h" from includes.h * Use samba_version_string() instead of SAMBA_VERSION_STRING in files that use no other macro from version.h instead of SAMBA_VERSION_STRING. * explicitly include "version.h" in those files that use more macros from "version.h" than just SAMBA_VERSION_STRING. Michael
2009-01-14Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison1-15/+8
the connections list and authentication structures to worry about. Jeremy
2009-01-14Remove another global from clidfs that is only used in client.c.Jeremy Allison1-6/+11
Jeremy.
2009-01-08Fix bug #6021 - smbclient du command does not recuse properlyJeremy Allison1-4/+4
Jeremy.
2009-01-05Fix bug 6014 -- mget shouldn't segfault without argumentsVolker Lendecke1-0/+5
Thanks to kevin.paulus@mtm.kuleuven.be for the bug report Volker
2009-01-02Remove cli_cm_set_dest_ss() - removes the global dest_ssJeremy Allison1-5/+8
from libsmb/clidfs.c. Keep the '-I<address>' option in smbclient working. The intent is to remove all globals from libsmb/clidfs.c. Jeremy.
2008-12-31Fix all warnings in source3 with gcc4.3.Jeremy Allison1-5/+12
Jeremy.
2008-12-31Fix more asprintf and "ignoring return code" warnings from gcc 4.3.Jeremy Allison1-24/+36
Jeremy.
2008-12-19Make smbclient "put" use cli_pushVolker Lendecke1-37/+31
This should fill the TCP socket even beyond the smbclient io_bufsize, very much like smbclient "get" should do it since 3.2
2008-12-14Remove the global "cmdline_auth_info" from source3/lib/util.cVolker Lendecke1-14/+26
This involves changing all our clients, that's why it's so large.
2008-12-12mount.cifs: allow mounts to ipv6 capable serversJeff Layton1-101/+120
The current name resolution scheme in mount.cifs is IPv4 only. Expand it to be protocol-independent. Also take advantage of the fact that getaddrinfo() returns a list of addresses and have mount.cifs try each in turn until it hits one that's reachable and allows the socket to connect. Signed-off-by: Jeff Layton <jlayton@redhat.com>
2008-12-05mount.cifs: if mount user not specified use USER environment variableSteve French1-1/+7
smbfs also would use the USER environment variable if the user was not specified on the mount command and no credential file specified, and mount.cifs man page says that we will use this environment variable (in most cases this will not cause a behavior change, because we were doing getuid of the current process which will usually be the same name). Fixes Samba bug #5934 Acked-by: Jeff Layton
2008-12-03s3: Change sockaddr util function names for consistencyTim Prouty1-1/+1
Also eliminates name conflicts with OneFS system libraries
2008-11-06mount.cifs: use lock/unlock_mtab scheme from util-linux-ng mount progJeff Layton4-67/+309
The util-linux-ng sources have a good, but rather complex scheme for locking the mtab before updating it. Mount helpers need to follow the same scheme. Advisory locking only works if everyone is using the same locking scheme. Copy the routines we need from util-linux-ng into a separate source file and then have mount.cifs and umount.cifs link in this object. The long term goal is to have these routines in a separate helper library (libmount). Mount helpers can then dynamically link in that lib. Until that happens, this should serve as a suitable stopgap solution. Signed-off-by: Jeff Layton <jlayton@redhat.com>