Wayne Davison
64bba1465b
Check SIZEOF_LONG_LONG instead of HAVE_LONG_LONG.
2005-02-21 17:02:53 +00:00
Wayne Davison
22c7c5fb0b
- Integrated the latest version from samba.
...
- Tweaked the order of the code in my_modf() to avoid
a compiler warning.
2005-02-20 22:10:33 +00:00
Wayne Davison
4f5b0756df
John E. Malmberg convinced me to standardize on #ifs for defined
...
values instead of non-zero.
2005-02-14 00:53:43 +00:00
Wayne Davison
5f238db203
- Use "uchar" instead of "unsigned char".
...
- Tweaked an initializer to try to avoid a compiler warning.
2005-01-28 21:01:21 +00:00
Wayne Davison
707415d4fc
Use int64 instead of uint64.
2005-01-20 22:37:38 +00:00
Wayne Davison
d82773ffe9
Fixed the file_checksum1() function that is compiled only when
...
TEST_MDFOUR is defined: it did not have the fix that the main
rsync code got back in protocol 27 to properly handle files
that are a multiple of 64-bytes long.
2005-01-10 20:52:08 +00:00
Wayne Davison
1c666c3fcb
Got rid of a bunch of cruft.
2004-04-22 21:17:58 +00:00
Wayne Davison
04575bcab5
Missed one void-pointer-arithmetic case.
2004-04-09 20:17:01 +00:00
Wayne Davison
71b291d71b
AIX's cc was complaining about the void* arithmetic.
2004-04-09 19:53:50 +00:00
Wayne Davison
dbb665180c
Shouldn't ignore .cvsignore.
2004-02-23 18:19:13 +00:00
Wayne Davison
4d4df3cd2b
Another attempt at measuring the minimum alignment for a system.
2004-02-10 23:35:12 +00:00
Wayne Davison
61d35e1844
Trying a different MINALIGN because of core dumps on the sparc-64
...
build-farm machines.
2004-02-10 22:28:36 +00:00
J.W. Schultz
15f85b1f63
Revert pool_alloc's use of bomb if pool == NULL.
2004-02-10 21:11:24 +00:00
Wayne Davison
aa0b9ca174
If we call pool_alloc() on a NULL pool, bomb out with an error.
2004-02-10 17:52:31 +00:00
Wayne Davison
be20dc3448
Changed a while loop to a for loop.
2004-02-10 17:34:05 +00:00
J.W. Schultz
7efdcf3218
Added allocation pool code.
2004-02-10 03:26:41 +00:00
Wayne Davison
72d45525d2
Make sure that strlcpy() returns the right value when the bufsize is 0.
2004-01-20 00:59:26 +00:00
Wayne Davison
1fb8ec4b0d
Fixed a bug in strlcat() where it would not properly detect a no-change
...
condition if called with an initial string longer than the specified
size limit (due to an unsigned var's inability to go negative).
2004-01-20 00:29:49 +00:00
Wayne Davison
d04e9c51b4
Changed "remote_version" to "protocol_version".
2003-09-09 15:58:48 +00:00
Wayne Davison
980821ebab
No longer needed (replaced by wildmatch).
2003-07-30 06:13:47 +00:00
Wayne Davison
d811b68901
Make sure that no character class can match a '/'.
2003-07-14 15:12:59 +00:00
Wayne Davison
136c5c5ec3
Silence some compiler warnings on HP-UX.
2003-07-07 07:22:08 +00:00
Wayne Davison
fc96552d26
Don't treat "[:" as the start of a named set if there's no ":]".
2003-07-07 07:07:16 +00:00
Wayne Davison
5bb920003e
- Return ABORT_ALL for a syntax error in the pattern (not FALSE).
...
- Abort if the [:class:] name is not known.
2003-07-06 18:26:34 +00:00
Wayne Davison
f2ac84c36d
Added some portability code for the ctype functions.
2003-07-06 16:29:32 +00:00
Wayne Davison
e11c425119
- Added [:class:] handling to the character-class code.
...
- Use explicit unsigned characters for proper set checks.
- Made the character-class code honor backslash escapes.
- Accept '^' as a class-negation character in addition to '!'.
2003-07-06 04:33:54 +00:00
Wayne Davison
c9a59880f0
Simplified the character-class code a bit.
2003-07-05 22:40:27 +00:00
Wayne Davison
d5c973ccb7
Changed some names since "depth" wasn't really the right term.
2003-07-05 19:03:42 +00:00
Wayne Davison
20b2e9cef7
Improved the ABORT logic to allow aborting consecutive "*" wildcards
...
back to a "**" wildcard. Added optional debug code for recursion stats.
2003-07-05 18:48:34 +00:00
Wayne Davison
710faea9a4
Added in the ABORT optimization logic from a newer wildmat release,
...
adapted for our code that distinguishes "**" from "*".
2003-07-05 17:30:53 +00:00
Wayne Davison
7a1f46b6ac
A couple comment tweaks.
2003-07-05 07:22:13 +00:00
Wayne Davison
446ee5b110
A new wildcard-matching routine to replace the fnmatch code.
2003-07-05 00:03:36 +00:00
Wayne Davison
6813fa7eac
Attempting to fix the snprintf() conflict on a gcc-using HPUX 11.11.
2003-07-04 15:36:39 +00:00
J.W. Schultz
fc1ae6582f
- for protocol version >= 27, mdfour_tail() is called when the block size
...
(including checksum_seed) is a multiple of 64. Previously it was not
called, giving the wrong MD4 checksum.
- for protocol version >= 27, a 64 bit bit counter is used in mdfour.c as
required by the RFC. Previously only a 32 bit bit counter was used,
causing incorrect MD4 file checksums for file sizes >= 512MB - 4.
-- Craig Barratt
2003-04-10 01:50:12 +00:00
Paul Green
990ff150ef
Fix bug reported by engard.ferenc at innomed.hu whereby using the %f format
...
in sprintf with a value like 0.025 produced 0.250. We were dropping the
leading zeros before the fractional digits.
2003-04-09 21:10:18 +00:00
Wayne Davison
7ea84b6890
Only refer to S_ISVTX if S_ISVTX is defined.
2003-01-10 20:08:43 +00:00
Wayne Davison
cc234d944a
+ Fixed a comment that referred to isc_net_pton() instead of inet_pton().
...
+ Only prototype inet_pton6() if INET6 is defined.
2003-01-10 20:08:12 +00:00
Martin Pool
e0fde757fd
Doc.
2002-04-08 03:38:36 +00:00
Martin Pool
c7677b892a
Clearer doc.
2002-01-15 11:32:30 +00:00
Martin Pool
0e916c6038
Just include rsync.h rather than all the individual headers.
...
(Suggestion from Dave Dykstra.)
2001-11-29 00:15:20 +00:00
Martin Pool
09b6f4b00d
Fix inet_ntop/pton names
2001-11-28 01:29:41 +00:00
Martin Pool
7067b0aa28
Protect AF_INET6 references with #ifdef INET6
2001-11-28 00:36:32 +00:00
Martin Pool
3723efcb1d
Try to fix headers for UNICOS
2001-11-27 07:23:58 +00:00
Martin Pool
087173c887
When producing a ls-style permissions string, also handle
...
sticky/setuid/setgid bits the same way as GNU ls.
2001-11-27 07:05:33 +00:00
Martin Pool
740819ef7b
Split code to generate "rwx-----" strings into lib/permstring.c so it
...
can be reused in tls.
2001-11-27 06:43:17 +00:00
Martin Pool
8f694072a5
Add Paul Vixie's implementation of inet_ntop and inet_pton for
...
platforms that don't have them.
2001-11-27 05:22:23 +00:00
Andrew Tridgell
b7334b4c31
removed remnant test code for cray
2001-06-28 05:07:15 +00:00
Andrew Tridgell
a7f8404ecd
fixed md4 on 64 bit boxes
2001-06-26 03:09:14 +00:00
Andrew Tridgell
65c2a918d4
forgot 1 place that used slprintf
2001-05-07 08:59:48 +00:00
Andrew Tridgell
8950ac03f8
imported new snprintf.c from samba, got rid of slprintf
2001-05-07 06:59:37 +00:00