summaryrefslogtreecommitdiffstats
path: root/source/client/clitar.c
Commit message (Collapse)AuthorAgeFilesLines
* fix for smbtar filename matchingAndrew Tridgell2002-07-281-1/+1
| | | | samba-patches 852
* - fixed a crash bug for 'print -'Andrew Tridgell2002-07-131-2/+0
| | | | - removed an unused variable
* used findstatic.pl to make some variables static and remove some deadAndrew Tridgell2002-07-011-12/+12
| | | | code
* Break up samba's object dependencies, and its prototype includes.Andrew Bartlett2002-06-251-0/+1
| | | | | | | | | | | | | | | | Now smbclient, net, and swat use their own proto files - now the global proto.h The change to libads/kerberos.c was to break up the dependency on secrets.c - we want to be able to write an ADS client that doesn't need local secrets. I have other breakups in the works - I will remove the dependency of rpc_parse on passdb (and therefore secrets.c) shortly. (NOTE: This patch does *not* break up includes.h, or other such forbidden actions). Andrew Bartlett
* Removed version number from file header.Tim Potter2002-01-301-2/+1
| | | | Changed "SMB/Netbios" to "SMB/CIFS" in file header.
* first step in converting the head branch to use lang_tdb.c insteadAndrew Tridgell2001-10-111-1/+1
| | | | of gettext for internationalisation support. There is more to do
* initial support to error report in smbclient, useful when using smbclient -c ↵Simo Sorce2001-10-091-10/+17
| | | | | | in scripts. Thanks to Claudio Cicali aka FleXer for the initial patch
* Removed 'extern int DEBUGLEVEL' as it is now in the smb.h header.Tim Potter2001-10-021-1/+0
|
* move to SAFE_FREE()Simo Sorce2001-09-171-12/+10
|
* declare dbf in one spotAndrew Tridgell2001-09-101-1/+0
|
* replaced stdio in many parts of samba with a XFILE. XFILE is a cut-downAndrew Tridgell2001-09-101-6/+6
| | | | | | | | | replacemnt of stdio that doesn't suffer from the 8-bit filedescriptor limit that we hit with nasty consequences on some systems I would eventually prefer us to have a configure test to see if we need to replace stdio, but for now this code needs to be tested widely so I'm enabling it by default.
* a bunch of fixes from the sflight to seattleAndrew Tridgell2001-08-201-1/+0
| | | | | | in particular: - fixed NT status code for a bunch of ops - fixed handling of protocol levels in ms_fnmatch
* this is a big global fix for the ptr = Realloc(ptr, size) bug.Simo Sorce2001-08-121-2/+4
| | | | | | many possible mem leaks, and segfaults fixed. someone should port this fix to 2.2 also.
* strchr and strrchr are macros when compiling with optimisation in gcc, so we ↵Andrew Tridgell2001-07-041-6/+6
| | | | can't redefine them. damn.
* The big character set handling changeover!Andrew Tridgell2001-07-041-62/+25
| | | | | | | This commit gets rid of all our old codepage handling and replaces it with iconv. All internal strings in Samba are now in "unix" charset, which may be multi-byte. See internals.doc and my posting to samba-technical for a more complete explanation.
* next_token() was supposed to be a reentrant replacement for strtok(),Andrew Tridgell2001-06-211-5/+5
| | | | | | | | | but the code suffered from bitrot and is not now reentrant. That means we can get bizarre behaviour i've fixed this by making next_token() reentrant and creating a next_token_nr() that is a small non-reentrant wrapper for those lumps of code (mostly smbclient) that have come to rely on the non-reentrant behaviour
* Fix for smbtar race condition from Glenn Burkhardt <glenn@aoi.ultranet.com>.Jeremy Allison2001-03-261-1/+11
| | | | Jeremy.
* Tar fixes from Craig Barratt craig@arraycomm.com.Jeremy Allison2000-11-221-2/+2
| | | | Jeremy.
* - removed all our old wildcard matching code and replaced it with aAndrew Tridgell2000-04-301-2/+2
| | | | | | | | | | | | | | | | call to ms_fnmatch(). This also removes all the Win9X semantics stuff and a bunch of other associated cruft. - moved the stat cache code into statcache.c - fixed the uint16 alignment requirements of ascii_to_unistr() and unistr_to_ascii() - trans2 SMB_FIND_FILE_BOTH_DIRECTORY_INFO returns the short name as unicode always (at least thats what NT4 does) - fixed some errors in the in-memory tdb code. Still ugly, but doesn't crash as much
* Second set of inline optimisation fixes from Ying Chen <ying@almaden.ibm.com>.Jeremy Allison2000-01-261-4/+4
| | | | | | Stop makeing function calls for every use of skip_multibyte_char. This function is called several *million* times during a NetBench run :-). Jeremy.
* cli_open() wasn't handling DENY_FCB or O_WRONLY correctly.Andrew Tridgell2000-01-081-1/+1
| | | | | | After fixing that I needed to use O_RDWR instead of O_WRONLY in several places to avoid the silly bug in MS servers that doesn't allow getattrE on a file opened with O_WRONLY
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-32/+60
|
* declare ttarf as double, as in client.cAlexandre Oliva1999-03-301-1/+1
|
* use double instead of SMB_BIG_UINT for dir_total and ttarfAlexandre Oliva1999-03-301-1/+1
| | | | (by tridge, merged from branch)
* * client/client.c (dir_total): use SMB_BIG_UINTAlexandre Oliva1999-03-251-2/+3
| | | | | | * client/clitar.c (ttarf): ditto * * lib/snprintf.c: support long longs; adapted from Cloyce D. Spradling's patch <cloyce@headgear.org>
* %s not $sLuke Leighton1999-02-031-1/+1
|
* A small change to clitar.c (really, I promise :-)Richard Sharpe1999-01-171-0/+7
| | | | | | | If we are writing the tar file to stdout, set dbf to stderr so that we do not screw up tar output with log info etc. Compiles clean and tested with 38MB backup. Honest :-)
* Fixed problems in debug code because I did not compileRichard Sharpe1998-12-191-4/+4
| | | | first :-(
* Added some debugging to clitar ...Richard Sharpe1998-12-191-0/+4
|
* Fixed tar recurse bug.Jeremy Allison1998-12-171-1/+1
| | | | Jeremy.
* Added the same open()/fopen()/creat()/mmap() -> sys_XXX calls.Jeremy Allison1998-11-171-3/+3
| | | | | | | | | | Tidied up some of the mess (no other word for it). Still doesn't compile cleanly. There are calls with incorrect parameters that don't seem to be doing the right thing. This code still needs surgery :-(. Jeremy.
* fixed setmode in smbclientAndrew Tridgell1998-11-141-7/+6
|
* - handle servers that don't support getattrE (ie. NT)Andrew Tridgell1998-11-141-1/+1
| | | | - use * in clitar instead of *.*
* Makefile.in configure configure.in include/config.h.in: Changes for DGUX and ↵Jeremy Allison1998-11-131-1/+1
| | | | | | | | | | | | | | UNIXWARE. groupdb/aliasdb.c groupdb/aliasfile.c groupdb/groupfile.c: Don't use snprinf, use slprintf. include/includes.h: Fix YP problem. include/smb.h: Fix ZERO_STRUCTP. lib/util_sock.c: Added strerror() in debugs. passdb/ldap.c: Don't use snprinf, use slprintf. rpc_client/cli_lsarpc.c rpc_client/cli_pipe.c rpc_parse/parse_sec.c rpc_server/srv_pipe.c: Don't use snprinf, use slprintf. script/installman.sh: DGUX changes. smbd/open.c smbd/oplock.c: Fixed gcc warnings. web/swat.c: Changes USER to SWAT_USER.
* Makefile.in: Removed rpc_server/srv_ldap_helpers.c per J.F.'s instructions.Jeremy Allison1998-11-091-8/+7
| | | | | | | | | | | | | client/client.c: client/clitar.c: include/client.h: smbwrapper/smbw_dir.c: smbwrapper/smbw_stat.c: smbwrapper/smbw.c: lib/util.c: Converted all use of 'mode' to uint16. smbd/quotas.c: Fixed stupid comment bug I put in there :-(. printing/printing.c: Fix from J.F. to new code. Jeremy.
* converted smbclient to use clientgen.c rather than clientutil.cAndrew Tridgell1998-11-091-1137/+112
| | | | | | | | | | | | | | | | | | | | | | | I did this when I saw yet another bug report complaining about smbclient intermittently missing files. Rather than applying more patches to smbclient it was better to move to the more robust clientgen.c code. The conversion wasn't perfect, I probably lost some features of smbclient while doing it, but at least smbclient should be consistent now. It if fails it should _always_ fail rather than giving people the false impression of a reliable utility. the tar stuff seems to work, but hasn't had much testing as I never use it myself. I'm sure someone will find bugs in my conversion of smbtar.c. It was quite tricky as it did a lot of its own SMB calls. It now uses clientgen.c exclusively. smbclient is still quite messy, but at least it doesn't build its own SMB packets. I haven't touched smbmount as I never use it. Mike, do you want to convert smbmount to use clientgen.c?
* fixed a cast warningAndrew Tridgell1998-10-051-1/+1
|
* Added E Jay Berkenbilt's fixesRichard Sharpe1998-10-041-0/+3
|
* Fixed extern definition of cnum in clitar.cJeremy Allison1998-09-291-1/+1
| | | | Jeremy
* Changes to test in configure if capabilities are enabled on a system.Jeremy Allison1998-09-281-1/+1
| | | | | | | | | | Changes to get Samba to compile cleanly with the IRIX compiler with the options : -fullwarn -woff 1209,1174 (the -woff options are to turn off warnings about unused function parameters and controlling loop expressions being constants). Split prototype generation as we hit a limit in IRIX nawk. Removed "." code in smbd/filename.c (yet again :-). Jeremy.
* Small update to clitar.c to omit warnings about servers notRichard Sharpe1998-09-261-4/+5
| | | | | | letting us change the date unless tar_real_noisy is True. Also updated a few places where variables are declared but not set.
* Added a minor fix to clitar.c for a bug.Richard Sharpe1998-09-241-16/+2
| | | | | | | Could not check that it compiles clean with Jeremy's -Wflags because someone loaded some changes to reply.c that break in the locking area :-(
* Fixed data corruption bugs in clitar.c with restores.Richard Sharpe1998-09-231-17/+58
| | | | | | | | | | | Have tested against samba with clitar using a hard-coded max_xmit of 2920, since max smit = 2920 does not seem to work in the smb.conf file. Will have to test correctly against Win95 and WinNT now. Have also compiled with -WJeremy'sFlags and get no more warnings after I removed an unused variable.
* Fixed up warnings in new client code.Jeremy Allison1998-09-231-4/+4
| | | | | | | Note to coders. If using gcc please use the compiler flags : -Wall -Werror -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual *before* checking anything in to ensure a clean compile. Jeremy.
* implemented du and tar -nAlexandre Oliva1998-09-211-3/+43
|
* Fixed changes in clitar.c that Jeremey noted. One change wasRichard Sharpe1998-09-191-1/+2
| | | | | | correct, the other needed slightly changing. Now to test it is all OK :-)
* Fixed compile errors in new code.Jeremy Allison1998-09-181-3/+3
| | | | Jeremy.
* Adding rewritten restore code ... Old code is still thereRichard Sharpe1998-09-181-52/+234
| | | | surrounded by a OLD_DOTARPUT.
* Ok so with this bugfix 64 bit file access actually seems to work :-).Jeremy Allison1998-09-111-1/+1
| | | | | | Problems were just dumb bugs like (defining sys_lseek to return 'int' DOH !). Jeremy.
* tridge the destroyer returns!Andrew Tridgell1998-09-051-2/+4
| | | | | | | | | | | | | | | | | | | | | | prompted by the interpret_security() dead code that Jean-Francois pointed out I added a make target "finddead" that finds potentially dead (ie. unused) code. It spat out 304 function names ... I went through these are deleted many of them, making others static (finddead also reports functions that are used only in the local file). in doing this I have almost certainly deleted some useful code. I may have even prevented compilation with some compile options. I apologise. I decided it was better to get rid of this code now and add back the one or two functions that are needed than to keep all this baggage. So, if I have done a bit too much "destroying" then let me know. Keep the swearing to a minimum :) One bit I didn't do is the ubibt code. Chris, can you look at that? Heaps of unused functions there. Can they be made static?