summaryrefslogtreecommitdiffstats
path: root/source3/client/clitar.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix smbclient/tarmode panic on connecting to Windows 2000 clients.Salvador I. Gonzalez2012-08-131-8/+19
| | | | | | | | | | | 'Freed frame ../source3/libsmb/clilist.c:934, expected ../source3/client/clitar.c:821' Cause: (strequal(finfo->name,"..") || strequal(finfo->name,".")) evaluates to true, do_tar returns without freeing ctx Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Aug 13 23:12:50 CEST 2012 on sn-devel-104
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-091-1/+1
|
* Fix bug #8922.Jeremy Allison2012-05-111-1/+1
| | | | | | | | | Looking at the do_list status returns was historically ignored, allowing tar to continue after NT_STATUS_ACCESS_DENIED. Return to this state. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 11 14:55:53 CEST 2012 on sn-devel-104
* 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
* build: Remove sys_creat wrapperAndrew Bartlett2012-04-051-2/+2
|
* s3-cli: fix bug 563, >8GB tar on BE machinesMasafumi Nakayama2012-01-031-5/+17
| | | | | | | | | Borrows on existing patches proposed by Craig Barratt and Brad Ellis. Signed-off-by: David Disseldorp <ddiss@suse.de> Autobuild-User: David Disseldorp <ddiss@samba.org> Autobuild-Date: Tue Jan 3 18:31:28 CET 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().
* Convert smbclient to using NtCreateX by preference, fall back to openX onJeremy Allison2011-12-021-2/+2
| | | | 'not implemented' or similar error.
* s3:clitar: remove unused/not existing extern variablesStefan Metzmacher2011-09-131-3/+0
| | | | metze
* s3-client/clitar.c: replace cli_read_old() with cli_read()Björn Baumbach2011-07-231-5/+4
| | | | 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>
* First part of fix for bug 8310 - toupper_ascii() is broken on big-endian systemsJeremy Allison2011-07-191-1/+1
| | | | | | | | | | Remove int toupper_ascii(int c); int tolower_ascii(int c); int isupper_ascii(int c); int islower_ascii(int c); and replace with their _m equivalents, as they are identical.
* s3:clitar: avoid usage of cli_errstr()Stefan Metzmacher2011-07-081-1/+2
| | | | metze
* s3-client/clitar.c: Fix cli_errstr() usage (part of bug #7864)Björn Baumbach2011-05-181-9/+14
| | | | | | Convert cli_errstr() to nt_errstr() Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* More const fixes... getting near the end now.Jeremy Allison2011-05-061-5/+5
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri May 6 00:57:00 CEST 2011 on sn-devel-104
* More simple const fixups.Jeremy Allison2011-05-051-1/+1
|
* Tidy up some missing checks for NULL in strlcpy.Jeremy Allison2011-05-041-1/+1
|
* Convert safe_strXX to strlXXX. Clean up off-by-ones.Jeremy Allison2011-05-041-31/+17
|
* s3-smb Use FILE_ATTRIBUTE_ARCHIVE intead of aARCHAndrew Bartlett2011-04-291-3/+3
| | | | | | 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-3/+3
| | | | | | 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-3/+3
| | | | | | 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: Use cli_writeall instead of cli_writeVolker Lendecke2011-04-261-2/+6
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-includes: only include system/filesys.h when needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* s3: Fix Coverity ID 83: RESOURCE_LEAKVolker Lendecke2011-03-271-0/+3
|
* s3-debug Impove setup_logging() to specify logging to stderrAndrew Bartlett2010-11-021-1/+1
| | | | | | | | This change improves the setup_logging() API so that callers which wish to set up logging to stderr can simply ask for it, rather than directly modify the dbf global variable. Andrew Bartlett
* Fix bug #7700 - Improvement of return code of smbclientJeremy Allison2010-10-291-16/+29
| | | | | | | | | | 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
* s3: use monotonic clock for time deltas in smbtarBjörn Jacke2010-08-311-7/+7
|
* s3: Remove "cli" from "struct finfo"Volker Lendecke2010-07-301-2/+4
|
* s3: Remove a typedef (struct file_info)Volker Lendecke2010-07-271-4/+6
|
* s3-client: Make sure we only write to an opened file.Andreas Schneider2010-06-291-4/+10
| | | | Found by clang-analyzer.
* s3: "tar_parseargs" only looks at the mtimeVolker Lendecke2009-11-291-1/+1
|
* s3: "dotareof" only looks at the file typeVolker Lendecke2009-11-291-1/+1
|
* s3: Pass the "fake dir create times" parameter to sys_*statVolker Lendecke2009-11-291-2/+3
| | | | Step 0 to restore it as a per-share paramter
* Revert "s3: Make the implicit reference to Protocol in mask_match_list() ↵Volker Lendecke2009-11-231-7/+2
| | | | | | explicit" This reverts commit 1e22899d268ae5a089f941a204413c07ee64fc78.
* Revert "s3: Move the global variable Protocol to struct smbd_server_connection"Volker Lendecke2009-11-231-2/+2
| | | | This reverts commit c85a4c9ba4a7de65a7850f6f9708df66bd24deea.
* s3: Move the global variable Protocol to struct smbd_server_connectionVolker Lendecke2009-11-211-2/+2
|
* s3: Make the implicit reference to Protocol in mask_match_list() explicitVolker Lendecke2009-11-211-2/+7
|
* Introduce "struct stat_ex" as a replacement for SMB_STRUCT_STATVolker Lendecke2009-05-261-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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_setatr async.Jeremy Allison2009-05-061-2/+2
| | | | Jeremy.
* Make cli_getatr() async.Jeremy Allison2009-05-051-1/+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-301-2/+3
| | | | Jeremy.
* Get medieval on our ass about SMB1 file descriptors being 16 bits, not an int.Jeremy Allison2009-04-301-6/+5
| | | | | | | 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_chkpath async.Jeremy Allison2009-04-221-1/+1
| | | | Jeremy
* Make cli_mkdir async. Change it to return NTSTATUS.Jeremy Allison2009-04-211-1/+1
| | | | Jeremy.
* 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 all warnings in source3 with gcc4.3.Jeremy Allison2008-12-311-5/+12
| | | | Jeremy.