aboutsummaryrefslogtreecommitdiffstats
path: root/token.c
Commit message (Collapse)AuthorAgeFilesLines
* Got rid of type-casting into isFOO() and toFOO() functions byWayne Davison2006-11-091-2/+2
| | | | using static inline functions that take a signed char pointer.
* Updated the FSF's address to an even newer one.Wayne Davison2006-04-251-3/+3
|
* - Updated the address for the FSF in the opening comment.Wayne Davison2006-04-251-23/+20
| | | | | | | - Standardized the format of the opening comment, including adding a brief description of what's in the file for those that lacked it. - Added some missing copyright lines. - Some minor whitespace tweaks (in a few of the files).
* Optimized set_compression() to remove the per-file strdup(), strlower(),Wayne Davison2005-12-301-24/+34
| | | | and free() calls (it now uses iwildmatch()).
* Fixed a bug in set_compression() where the default dont-compressWayne Davison2005-12-301-0/+3
| | | | patterns (e.g. *.gz) would not match a pathname containing a slash.
* Obey new def_compress_level setting.Wayne Davison2005-10-261-2/+3
|
* Fixed a mismatch in the compressed-data handling between how theWayne Davison2005-02-141-10/+16
| | | | sending side and the receiving side handled implicit (unsent) data.
* Changed various token variables from "int"s to "int32"s.Wayne Davison2005-02-141-13/+14
|
* Backed out changes to send_deflated_token() that surrounded theWayne Davison2005-01-021-16/+10
| | | | | | call to deflate(..., Z_INSERT_ONLY) -- the underlying bug was caused by the zlib code not handling Z_INSERT_ONLY in the case where the server has disabled compression.
* In send_deflated_token(), the section that handles "token != -2"Wayne Davison2005-01-021-4/+7
| | | | | now breaks up the calls to deflate() into CHUNK_SIZE chunks, just like the other sections of the code.
* - Use an int32 for the each block-size variable.Wayne Davison2005-01-011-39/+40
| | | | | - Fixed a problem in send_deflated_token() where the data we are compressing might not finish processing in one call.
* My modified version of Chris Shoemaker's improved batch-file handling.Wayne Davison2004-07-151-34/+0
|
* Moved the externs to the top and made a few trivial format tweaks.Wayne Davison2004-06-181-15/+20
|
* Fixed a byte-order problem for batch-file processing on big-endianWayne Davison2004-01-061-4/+5
| | | | systems (reported by Jay Fenlason).
* Merged in the security fixes from 2.5.7.Wayne Davison2003-12-061-4/+4
|
* Fixed an operator-precedence problem in the batch-mode code.Wayne Davison2003-10-131-1/+1
|
* Got rid of some "/* dw */" comments and fixed some line's indentation.Wayne Davison2003-09-111-24/+24
|
* Use the AVAIL_OUT_SIZE() macro in a few more places to ensureWayne Davison2003-08-201-6/+6
| | | | | that the avail_out buffer is big enough to uncompress all the compressed data.
* Call wildmatch(), not fnmatch().Wayne Davison2003-07-301-1/+1
|
* Improved upon my last patch to make it clearer and cleaner.Wayne Davison2003-07-041-8/+16
|
* Fixed a problem where we might not have enough room to compressWayne Davison2003-07-031-2/+8
| | | | unsent tokens into the obuf in a single call.
* DocMartin Pool2002-04-081-2/+2
|
* Merge across rsync+ patch; add a little documentation to the manpage. More ↵Martin Pool2001-08-141-0/+33
| | | | documentation would be better.
* Back out change that treated "refuse options = compress" the same asDavid Dykstra1998-11-251-2/+7
| | | | | | "dont compress = *", by request of Tridge. Instead, mention the difference in the man page. Also, put in a shortcut in set_compression() to recognize "*" earlier instead of going through malloc/strtok/fnmatch/free cycle.
* When "refuse options = compress" is set in rsyncd.conf, silently send filesDavid Dykstra1998-11-241-1/+2
| | | | | at compression level 0 instead of printing an error and exitting. This is the same effect as "dont compress = *".
* added "dont compress" option with the default setting ofAndrew Tridgell1998-11-201-1/+32
| | | | *.gz *.tgz *.zip *.z *.rpm *.deb
* patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to addAndrew Tridgell1998-11-031-8/+8
| | | | different exit codes for different conditions.
* added finddead target, removed dead code and made some functionsAndrew Tridgell1998-09-091-2/+1
| | | | static
* Update to use the new zlib-1.1.2 code.Paul Mackerras1998-05-221-229/+286
| | | | | The compressed token code now handles the null (-2) token from the match logic.
* this fixes two problems:Andrew Tridgell1998-05-221-4/+7
| | | | | | | | | | | 1) handle 64 bit file offsets in the token code. I wonder how large bit files worked up till now? 2) send a null token when we have passed over a large lump of data without finding a token match. This reduces the number of IOs considerably as it removes the need for seeks/reads on the checksum calculation and literal send code. This is not enabled yet for the compressed case as the deflate token code can't handle it yet.
* formatting changes. committed separately so they don't mask the comingAndrew Tridgell1998-05-211-28/+27
| | | | token changes.
* some large systematic changes to make socket conversion easier. TheAndrew Tridgell1998-05-071-7/+7
| | | | biggest one is the use of rprintf() instead of fprintf()
* finished 64 bit file offset support. Hopefully rsync can now transferAndrew Tridgell1998-03-231-5/+5
| | | | | | | | | | | | | files up to 2^64 bytes in size. Now I just need to find enough disk space to test this :-) The 64 bit offset code only works if off_t is 64 bits (or bigger!) on both ends of the link. If one end tries to send a file greater than 2^31 in size and the other end doesn't support it then rsync will abort. This commit also cleans up some static declarations so they are in a unitinitialised segment to save load time.
* casting cleanups (rsync now compiles cleanly under IRIX 6.4)rsync-bugs1997-12-151-7/+7
|
* Fixed bug in receiving 32kB compressible filesPaul Mackerras1996-11-061-3/+17
|
* Fix compression bug where incompressible files weren't transmitted correctly.Paul Mackerras1996-10-021-1/+1
|
* This should fix the bug where file transfer with compression failed withPaul Mackerras1996-07-151-3/+6
| | | | the message 'inflate returned 0 (0 bytes)'.
* fix buglet in handling multiple filesPaul Mackerras1996-07-031-0/+1
|
* *** empty log message ***Andrew Tridgell1996-07-031-2/+0
|
* Added in-stream deflate compression for file reconstruction instructions.Paul Mackerras1996-07-031-6/+278
|
* added resend logicAndrew Tridgell1996-07-021-1/+2
| | | | added checksum on all files
* *** empty log message ***Andrew Tridgell1996-07-011-3/+3
|
* added hooks for compression in token.cAndrew Tridgell1996-07-011-0/+101