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
Andrew Tridgell
f62c17e378
use mkstemp on systems where it is secure
2001-05-02 08:33:18 +00:00
Martin Pool
5013576705
Change from getopt to popt.
2001-02-23 00:45:07 +00:00
Andrew Tridgell
14175f1e77
fixed bug in replacement inet_aton()
2000-04-19 05:49:15 +00:00
Andrew Tridgell
269833af78
test was the wrong way around
2000-04-19 05:44:43 +00:00
Andrew Tridgell
fca3ef06cd
autoconf test for broken solaris inet_aton()
2000-04-19 05:33:39 +00:00
Andrew Tridgell
c36cd31713
the convoluted nest of #ifdefs that is fnmatch.c caught us again. On
...
my system the LIBC tests meant it never compiled and we used the
broken system one.
hacked it so it does compile
2000-01-25 14:17:21 +00:00
Andrew Tridgell
5b5591d8a8
make the replacement inet_aton() function independent of
...
inet_addr(). Some systems were detecting a missing inet_aton(), but
actually had it and inet_addr() called it, causing infinite recursion
2000-01-24 12:02:44 +00:00
Andrew Tridgell
03e2d0e329
fixed mdfour code on Cray (64 bit problems)
...
Thanks to roebel@kgw.tu-berlin.de
2000-01-23 11:26:10 +00:00
Andrew Tridgell
3060d4aa1d
handle systems that don't take a 2nd argument to gettimeofday()
2000-01-23 02:16:51 +00:00
David Dykstra
c08bb0fb73
Needed to comment out the inclusion of headers in fnmatch.c because it
...
couldn't find some of them (especially <fnmatch.h>, because it wasn't
looking in the current directory). The header files are included better
from ../rsync.h.
2000-01-10 20:36:20 +00:00
David Dykstra
9dce9b45b3
Upgrade lib/fnmatch.[ch] to the latest from glibc-2.1.2 because the
...
FNM_PATHNAME flag (to stop at slashes in path names) was not working.
Ironically, the bug in glibc's fnmatch was reported on the rsync mailing
list in late October, and rsync's configure.in was changed to detect the
bad glibc and use the internal fnmatch, but the internal fnmatch was based
on the same buggy glibc!
2000-01-07 17:58:44 +00:00
Andrew Tridgell
b17bc22bb3
added a replacement inet_aton() for systems that don't have it.
...
thanks to Dave for pointing this out.
1999-11-01 21:35:15 +00:00
Andrew Tridgell
3adffb52e6
forgot to commit the fnmatch.h changes
1999-11-01 21:25:39 +00:00
David Dykstra
52d7d78865
Change the implementation of memmove in lib/compat.c to call bcopy instead
...
of memcpy because bcopy is guaranteed to work with overlapping memory and
memcpy is not. Bug fix for PR#1584 in which log entries in the rsync
daemon log on Sunos 4.1.4 were garbled.
1999-02-12 17:27:22 +00:00
David Dykstra
e68f34816f
Add alternate implementation of waitpid() for systems that have wait4 but
...
not wait3, in particular Amdahl's SVR2-based UTS 2.1.2. The code comes
from apache, but I contributed it to apache in the first place.
1999-02-03 15:11:40 +00:00
Andrew Tridgell
9e3c856a39
updates to reflect new samba.org domain
...
the main web site is now http://rsync.samba.org/
1998-11-23 00:30:27 +00:00
Andrew Tridgell
5a788adec1
use native strlcat() and strlcpy() if available
1998-11-15 01:04:16 +00:00
Andrew Tridgell
37f9805dab
changed strlcat() and strlcpy() to have the same semantics as the
...
OpenBSD functions of the same name.
changed slprintf() to take buffer length rather than buffer length -1
1998-11-14 23:31:58 +00:00
Andrew Tridgell
2fb27e9146
use macros to make mdfour faster on systems that don't do inlining
...
well. Also helps when optimisation level is low.
1998-11-04 02:35:18 +00:00