Martin Pool
c7b562becf
Correct the plural in "1 file to consider." (Greg Louis)
2002-03-14 12:00:12 +00:00
David Dykstra
d27cbec598
Reversing the order of maybe_emit_filelist_progress() and
...
emit_filelist_progress() makes the native compilers on systems
including Solaris and Irix happier.
2002-02-13 18:30:27 +00:00
David Dykstra
f5be54d6ab
Some systems, notably Sunos4, do not support realloc(NULL, n), so if
...
nothing has yet been malloced in flist_expand(), call malloc instead of
realloc. Problem introduced in revision 1.106 of flist.c on January 25.
2002-02-13 18:06:36 +00:00
Martin Pool
db719fb0d7
Factor out code for filelist progress. Copy&paste considered harmful.
...
Add a little doc about potential optimization of stat() calls.
2002-02-13 02:44:31 +00:00
David Dykstra
1bbd10fe07
Remove the "rsync:" prefixes on FINFO messages. Return the "building file
...
list ... done" to the way it was in 2.5.1 and before when not using -P.
Apply the file list progress messages when receiving files in addition to
sending files.
2002-02-07 16:36:12 +00:00
Martin Pool
a261989cda
More signedness fixes; should be harmless.
2002-01-25 23:07:33 +00:00
Martin Pool
5f78da2025
Fix for device nodes. (dann frazier) (Debian #129135 )
2002-01-25 10:39:08 +00:00
Martin Pool
2119a4c462
Another DEV64_T change.
2002-01-25 10:16:11 +00:00
Martin Pool
1d5a1da9f8
With -vv, when the file list grows, show a message.
2002-01-25 10:12:36 +00:00
Martin Pool
2e7d19945c
With -vv, when the file list grows, show a message.
2002-01-25 10:12:02 +00:00
Martin Pool
5d2c5c4c73
Undo overzealous deletion.
2002-01-25 10:09:00 +00:00
Martin Pool
8694312695
Add dummy show_flist_stats().
2002-01-25 10:06:36 +00:00
Martin Pool
d9d6bc5278
Factor out code to grow the file list into a common location.
2002-01-25 10:05:49 +00:00
Martin Pool
ebed4c3af0
indent -kr -i8
2002-01-25 09:59:00 +00:00
Martin Pool
172875cf15
Add link to the message that introduced string_area.
2002-01-25 09:54:21 +00:00
Martin Pool
9dd891bb28
Signedness security patch from Sebastian Krahmer <krahmer@suse.de> --
...
in some cases we were not sufficiently careful about reading integers
from the network.
Also, make sure log messages are always nul-terminated.
2002-01-23 04:57:18 +00:00
Martin Pool
e03dfae507
Change gratuituous strlcat's into strlcpy, since we already know the
...
length of the existing string.
2002-01-15 11:50:32 +00:00
Martin Pool
582250008b
The Ted T'so school of program optimization: make progress visible and
...
people will think it's faster.
So now with --progress rsync will show you how many files it has seen
as it builds the file_list.
2002-01-15 10:43:51 +00:00
Martin Pool
6abd193fe3
Always use 64-bit ino_t and dev_t internally, so that we can detect
...
hardlinks if coming from a larger platform. Add heaps of comments
explaining why this is so.
2002-01-11 08:25:32 +00:00
Martin Pool
736a6a291c
In protocol version 26, always
...
send 64-bit ino_t and dev_t. We also need to try to use 64-bit
ino_t internally *even if* this platform does not have 64-bit
inums itself, because we need to find duplicate inums when
coming from a larger platform with --hardlinks.
2002-01-11 07:15:16 +00:00
Martin Pool
87a819edee
IRIX cc cares that the operands to the ternary have the same type.
2001-12-05 13:48:41 +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
David Dykstra
76e26e1042
Better fix for case of excluded symlinks that point nowhere when using
...
--copy-links. The readlink_stat() does need to be done in the normal case
before checking the exclude patterns because it needs to know whether or
not a file is a directory in order to properly handle a trailing slash
in an exclude pattern. This fix makes make_file() go ahead and call
readlink_stat() but then if the latter returns an ENOENT and copy_links is
on then it will only print an error if the path is not excluded.
2001-11-26 19:15:53 +00:00
David Dykstra
b964901f7d
Fix to make_file() to exit earlier if a file is excluded, because doing
...
readlink_stat() on an excluded file can be a problem when using the
--copy-links option (also known as -L) and the excluded file is a symlink
that points nowhere.
2001-11-16 19:19:44 +00:00
Martin Pool
08a740ff43
Fix casts when some variables are printed out.
2001-08-15 06:41:24 +00:00
Martin Pool
6902ed178b
Merge across rsync+ patch; add a little documentation to the manpage. More documentation would be better.
2001-08-14 02:04:47 +00:00
Martin Pool
ab94af5c6f
Correct over-zealous edit for UNICOS.
2001-08-06 12:23:50 +00:00
Martin Pool
c88ca682ef
Fix for UNICOS CC: first argument to readlink must not be const, or we
...
get an error.
2001-08-06 12:16:20 +00:00
Andrew Tridgell
efe3037cf5
use _S_IFLNK not S_IFLNK
2001-05-02 11:13:21 +00:00
Martin Pool
d567322fbc
include/exclude cluestick: with -vv, print out whether files are
...
included or excluded and why.
2000-10-09 03:46:38 +00:00
Andrew Tridgell
a20aa42ac4
a simple fix to the memory problems with the string pool patch. The
...
string pools conflict with the lastdir memory saving tricks.
2000-08-31 23:01:28 +00:00
Andrew Tridgell
5c66303ad6
some string_area cleanups
2000-08-29 04:47:39 +00:00
Andrew Tridgell
ac1a0994b6
added an explicit noexcludes flag to make_file()
...
this fixes a bug with --backup-dir and -x
added "ignore nonreadable" option (useful for hiding files in public archives)
2000-08-19 12:52:39 +00:00
Andrew Tridgell
3d38277706
optimisations from Rich Salz <rsalz@caveosystems.com>
2000-07-29 04:52:05 +00:00
Andrew Tridgell
ef55c686bc
add a --ignore-errors option
2000-03-21 04:06:04 +00:00
Andrew Tridgell
f76933b149
fixed the error code problem with test.sh
...
(was a minor bug in send_file_list)
2000-01-27 04:53:39 +00:00
Andrew Tridgell
d0fd26aa16
added some more debug info to the "buffer overflow in
...
receive_file_entry" message
2000-01-24 08:16:57 +00:00
Andrew Tridgell
66203a982b
added --backup-dir option from Bob Edwards
...
this is very useful for incremental backups
2000-01-24 04:58:53 +00:00
Andrew Tridgell
b315601ce0
removed Daves include-only optimisation. One of the bug reports turned
...
out to be caused by it and it seems rather a lot of extra effort for
what must really be a minor optimisation in most cases
2000-01-23 13:16:30 +00:00
Andrew Tridgell
5f808dfbd7
fix a problem with files > 2GB
...
(thanks to T.J.Adye@rl.ac.uk )
2000-01-23 12:30:34 +00:00
Andrew Tridgell
cda2ae84b3
added "ignore errors" option in rsyncd.conf
1999-10-31 02:19:24 +00:00
David Dykstra
cb13abfed0
Fix significant security holes with "use chroot = no" in an rsync daemon:
...
1. The file paths being sent and received were not "sanitized" to
ensure that there weren't any ".." components that would escape the
top level directory. This can't happen with the standard rsync
client, but it could be exploited on both read and write if someone
modified an rsync client. This fix sanitizes all incoming and
outgoing paths when "use chroot = no".
2. If a module is also "read only = no", clients could have created
symbolic links with ".." components that would allow writing
outside of the module. This could happen with the standard rsync
client. This fix sanitizes all incoming symbolic link targets
when "use chroot = no".
Previously, only top-level paths (anything passed in command line arguments)
were sanitized. Sorry, I didn't think about the individual file paths
before now.
1999-07-09 15:49:46 +00:00
Andrew Tridgell
f855a7d01a
fixed a bug that made us use only 16 bits of the file checksum when
...
comparing checksums for the --checksum (-c) option.
1999-06-26 01:06:38 +00:00
David Dykstra
245fbb5129
When -R is used, send the permissions of the original top directories to
...
the receiver even when not combined with -r. Without this, the directories
were getting created mode 777 because the default umask on receivers is
often 00.
1999-03-12 17:36:52 +00:00
David Dykstra
53f821f1e6
Fix a bug with rsync -R --delete from ./ as reported in PR#1532
1999-02-24 22:38:36 +00:00
David Dykstra
b33b791e6b
Add --delete-excluded option to delete files on the receiving side that
...
are excluded. Implies --delete.
1999-02-22 19:55:57 +00:00
David Dykstra
b531360763
Added --copy-unsafe-links option which is like --copy-links except it is
...
only for symlinks that point outside the source tree. Suggested by Charles
Hines <chuck_hines@VNET.IBM.COM > in PR#1376. Also apply the option to any
symbolic links in the source portion of a path when --relative is used,
as suggested by Francis Montagnac <Francis.Montagnac@sophia.inria.fr > on
the rsync mailing list in a message titled "New option: --copy-parent-links".
1999-02-17 19:34:40 +00:00
David Dykstra
7212be9237
Don't list cleaned-out duplicate file names as "<NULL>" when doing
...
list_only mode; skip them instead.
1998-11-24 20:51:45 +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
654175798b
patch from Alberto Accomazzi <aaccomazzi@cfa.harvard.edu> to add
...
different exit codes for different conditions.
1998-11-03 07:08:27 +00:00