summaryrefslogtreecommitdiffstats
path: root/source3/client
Commit message (Collapse)AuthorAgeFilesLines
* Make cli_posix_lock/unlock asynchronous.Jeremy Allison2009-07-131-2/+2
| | | | Jeremy.
* Fix coverity #729. Resource leak in error path.Jeremy Allison2009-06-191-1/+4
| | | | Jeremy.
* Fix bug #2356 - smbclient -t <term code> no longer works.Jeremy Allison2009-06-031-17/+0
| | | | | Removed code and docs. Jeremy.
* Move mount.cifs/umount.cifs to the top level and remove the outdated copyJelmer Vernooij2009-06-026-2639/+0
| | | | in Samba 4.
* Make cli_posix_chown()/cli_posix_chmod() async.Jeremy Allison2009-05-281-2/+2
| | | | Jeremy.
* Make cli_posix_stat() async.Jeremy Allison2009-05-281-2/+2
| | | | Jeremy.
* Make getfacl async.Jeremy Allison2009-05-281-6/+2
| | | | Jeremy.
* Add a smbclient "readlink" command and add docs for it.Jeremy Allison2009-05-271-0/+49
| | | | Jeremy.
* Add aync POSIX hardlink and symlink and torture test for them.Jeremy Allison2009-05-271-2/+2
| | | | | Missing call cli_readlink() is next. Jeremy.
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-262-21/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces struct stat_ex { dev_t st_ex_dev; ino_t st_ex_ino; mode_t st_ex_mode; nlink_t st_ex_nlink; uid_t st_ex_uid; gid_t st_ex_gid; dev_t st_ex_rdev; off_t st_ex_size; struct timespec st_ex_atime; struct timespec st_ex_mtime; struct timespec st_ex_ctime; struct timespec st_ex_btime; /* birthtime */ blksize_t st_ex_blksize; blkcnt_t st_ex_blocks; }; typedef struct stat_ex SMB_STRUCT_STAT; It is really large because due to the friendly libc headers playing macro tricks with fields like st_ino, so I renamed them to st_ex_xxx. Why this change? To support birthtime, we already have quite a few #ifdef's at places where it does not really belong. With a stat struct that we control, we can consolidate the nanosecond timestamps and the birthtime deep in the VFS stat calls. At this moment it is triggered by a request to support the birthtime field for GPFS. GPFS does not extend the system level struct stat, but instead has a separate call that gets us the additional information beyond posix. Without being able to do that within the VFS stat calls, that support would have to be scattered around the main smbd code. It will very likely break all the onefs modules, but I think the changes will be reasonably easy to do.
* Make cli_posix_open() and cli_posix_mkdir() async.Jeremy Allison2009-05-201-8/+4
| | | | Jeremy.
* Oops. Forgot to delete now unused local from the previous patch.Jeremy Allison2009-05-151-2/+0
| | | | Jeremy.
* Fix bug #6359 - smbclient -L does not list workgroup for hosts with both ↵Ole Hansen2009-05-151-4/+10
| | | | IPv4 and IPv6 addresses
* mount.cifs: directly include sys/stat.h in mtab.cJeff Layton2009-05-151-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>
* Maximum password length check too short in mount.cifsSteve French2009-05-141-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>
* Make cli_setatr async.Jeremy Allison2009-05-061-2/+2
| | | | Jeremy.
* Make cli_getatr() async.Jeremy Allison2009-05-051-1/+3
| | | | Jeremy.
* Make cli_getattrE async.Jeremy Allison2009-05-051-3/+3
| | | | Jeremy.
* Fix some warnings due to uint16_t!=-1 always being trueVolker Lendecke2009-05-031-1/+1
|
* Cause cli_close to return an NTSTATUS.Jeremy Allison2009-04-303-6/+7
| | | | Jeremy.
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-303-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.
* Make cli_unlink async.Jeremy Allison2009-04-291-2/+2
| | | | Jeremy.
* More async calls in libsmb/clifile.cJeremy Allison2009-04-291-1/+1
| | | | Jeremy.
* Convert cli_rename to async.Jeremy Allison2009-04-281-1/+1
| | | | Jeremy.
* Convert cli_posix_unlink() and cli_posix_rmdir()Jeremy Allison2009-04-281-2/+2
| | | | | to async. First trans calls I've done. Jeremy.
* Make dskattr async.Jeremy Allison2009-04-221-1/+1
| | | | Jeremy.
* Make cli_chkpath async.Jeremy Allison2009-04-222-4/+4
| | | | Jeremy
* Make rmdir async.Jeremy Allison2009-04-211-1/+1
| | | | Jeremy.
* Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison2009-04-212-2/+2
| | | | Jeremy.
* Remove smb_mkstemp() - libreplace will now provide a secure mkstemp() ifJelmer Vernooij2009-04-201-1/+1
| | | | the system one is broken.
* Remove the global "struct cm_cred_struct" and associated calls, makeJeremy Allison2009-03-171-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.
* Fix #3954Volker Lendecke2009-03-141-1/+2
|
* Remove the static "struct client_connection" mess which is part ofJeremy Allison2009-03-121-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.
* Revert "s3:libsmb: add an option to cli_push to let the caller provide the ↵Stefan Metzmacher2009-03-121-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
* s3:libsmb: add an option to cli_push to let the caller provide the buffersStefan Metzmacher2009-03-101-4/+6
| | | | metze
* Fix bug #6161 - smbclient corrupts source path in tar modeJeremy Allison2009-03-051-0/+16
| | | | | | This was my fault. I broke the smbclient tar argument processing in creating the string for chdir when removing pstrings. Jeremy.
* Fix guest mountsSteve French2009-02-241-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>
* s3:mount.cifs: make "mount.cifs -V" print the version, not usage.Michael Adam2009-02-241-5/+28
| | | | | | Also make "mount.cifs -h" not exit with error exit code but with return code 0. Michael
* s3:mount.cifs: don't error exit on explicitly requested help...Michael Adam2009-02-241-2/+1
| | | | Michael
* More warning fixes for Solaris.Jeremy Allison2009-02-231-3/+3
| | | | Jeremy.
* Replace get_myname() with the talloc version from v3-3-testVolker Lendecke2009-02-131-1/+1
|
* Fix Coverity IDs 879 and 880 (RESOURCE_LEAK, REVERSE_INULL)Volker Lendecke2009-02-121-4/+7
|
* mount.cifs: initialize rc to 0 in mainJeff Layton2009-02-061-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>
* mount.cifs: add fakemount (-f) and nomtab (-n) flags to mount.cifsShirish Pargaonkar2009-02-061-3/+9
| | | | ...so that these options work correctly when passed in by mount(8).
* umount.cifs: clean-up entries in /etc/mtab after unmountShirish Pargaonkar2009-02-051-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.
* Make cli_tcon_andx asyncVolker Lendecke2009-01-301-3/+6
|
* s3: make better use of ccache by not including version.h in every C-file.Michael Adam2009-01-151-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
* Remove smbclient globals that bled into clidfs.c. Now we only haveJeremy Allison2009-01-141-15/+8
| | | | | the connections list and authentication structures to worry about. Jeremy
* Remove another global from clidfs that is only used in client.c.Jeremy Allison2009-01-141-6/+11
| | | | Jeremy.
* Fix bug #6021 - smbclient du command does not recuse properlyJeremy Allison2009-01-081-4/+4
| | | | Jeremy.