Matt McCutchen
f532cede11
In "ignoring unsafe symlink" messages, show only the file-list path.
...
Rsync was showing the full destination path, which was confusing because
nothing is created at that path and was especially bogus in combination
with the source name of a solo file.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=506830
2010-07-03 09:19:01 -07:00
Wayne Davison
ea53d161be
Fixed an ACL/xattr corruption issue where the --backup option could cause
...
rsync to associate the wrong ACL/xattr information with received files.
2009-04-10 16:09:39 -07:00
Wayne Davison
f2522e3f53
Make the backup code call unsafe_symlink() correctly.
2009-03-03 08:57:39 -08:00
Wayne Davison
445640e803
Update the copyright year.
2009-01-17 13:41:35 -08:00
Wayne Davison
a64f19e24b
Fixed the backing up of a device or socket.
2008-05-22 16:44:01 -07:00
Wayne Davison
88e05f8489
Fixed an "else" in the device-making part of keep_backup().
2008-05-17 09:57:08 -07:00
Wayne Davison
e9489cd6cb
Fixed several issues with preserving xattrs when using --backup.
2008-05-17 09:35:46 -07:00
Wayne Davison
f1ca7c4429
Preserve the right errno value when trying adjunct functions during
...
robust backup, copy, and renaming activities.
2008-05-17 08:25:22 -07:00
Wayne Davison
d3d07a5e86
Include 2008 in the copyright years.
2008-03-01 12:01:41 -08:00
Wayne Davison
13710874ce
Changed "statx" to "stat_x" to try to work around a build problem on AIX.
2007-09-23 22:19:55 +00:00
Wayne Davison
e1ac7791fe
Changed make_bak_dir() to take a const char *.
2007-09-23 21:03:38 +00:00
Wayne Davison
f203266889
Made make_bak_dir() global.
2007-09-23 19:45:19 +00:00
Wayne Davison
8e41b68e8f
Tweaking the license text a bit more.
2007-07-10 13:55:49 +00:00
Wayne Davison
4fd842f98d
Switching to GPL 3.
2007-07-07 05:33:14 +00:00
Wayne Davison
b13505da1d
Need to call unmake_file() instead of free() on a file_struct.
2007-04-24 18:43:31 +00:00
Wayne Davison
9439c0cb5a
Adding the --fake-super option.
2007-04-24 07:32:44 +00:00
Wayne Davison
16edf86595
The improved --xattrs option is landing on the trunk.
2007-04-07 17:22:25 +00:00
Wayne Davison
1c3344a105
The ACL support has arrived! This version has a brand new protocol
...
that makes it incompatible with all prior versions. A patch will be
provided to allow talking with older (patched) rsync versions.
2007-03-11 00:13:34 +00:00
Wayne Davison
ba2133d6ad
Further modifications to the copyright comment section.
2007-02-04 14:54:58 +00:00
Wayne Davison
e238c9977d
Use the new device defines: F_RDEV_P(), DEV_MAJOR(), and DEV_MINOR().
2006-12-07 03:31:31 +00:00
Wayne Davison
7a821d518b
Tweaked some externs.
2006-12-05 15:59:46 +00:00
Wayne Davison
6b2a3d5de6
Moved an extern.
2006-12-03 07:58:12 +00:00
Wayne Davison
82ad07c418
- Typical tranfers now save 12-20 bytes per file because several vars
...
were moved out of file_struct into an optional member-var setup.
- Renamed and reorganized the FLAG_* defines.
- Use NDX_DONE instead of a literal -1 when sending/checking the
end-of-phase index value.
2006-12-03 06:44:16 +00:00
Wayne Davison
45d8bfe09e
Added some more "const" prefixes to some "char *" vars.
2006-11-28 19:31:41 +00:00
Wayne Davison
1e999f9f1b
The call to do_chmod() needed to be conditional.
2006-11-21 08:35:22 +00:00
Wayne Davison
e7c67065c0
Updated the FSF's address to an even newer one.
2006-04-25 23:51:12 +00:00
Wayne Davison
0f78b81511
- Updated the address for the FSF in the opening comment.
...
- 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).
2006-04-25 20:23:34 +00:00
Wayne Davison
cca9208697
Got rid of unused externs.
2006-02-24 16:43:44 +00:00
Wayne Davison
a56cdef9b1
Call mkdir_defmode() instead of do_mkdir().
2006-02-24 01:56:07 +00:00
Wayne Davison
21955d9c92
Call robust_rename() with its newly-added arg.
2006-01-30 07:18:03 +00:00
Wayne Davison
c3ef136d41
Call the new name of set_perms(): set_file_attrs().
2006-01-29 20:30:12 +00:00
Wayne Davison
b5c6a6aeeb
Handle separated devices and special files.
2006-01-26 10:38:58 +00:00
Wayne Davison
3de73827d7
Call make_file() with one more arg (the base flags).
2006-01-20 21:21:36 +00:00
Wayne Davison
b435d7174c
Added a new arg to the make_file() call.
2006-01-19 21:16:40 +00:00
Wayne Davison
45c49b52a4
Got rid of calls to (the soon to vanish) safe_fname() function.
2006-01-13 21:17:09 +00:00
Wayne Davison
b2e6caa01e
Indent the "failure:" label away from column 0.
2005-11-10 16:43:44 +00:00
Wayne Davison
93e28fbd99
Fixed a problem in the backing up of symlinks and devices: we
...
need to remove any old symlink/device/file to create the backup.
Also fixed a couple minor logic errors in the handling of symlinks
and devices. NOTE: the code still doesn't handle the changing of
a name from a dir to a non-dir or visa versa (which is a very old
deficiency in the code).
2005-06-10 17:57:18 +00:00
Wayne Davison
ba679d5194
In make_simple_backup(), if the rename() failed because we tried
...
to rename a directory over a file or visa versa, try to handle it.
2005-02-22 01:57:58 +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
4875d6b64d
Adding more calls to safe_fname().
2005-02-07 20:36:43 +00:00
Wayne Davison
7842418b7b
Renamed several exclude-related functions/variables using new
...
filter terminology.
2005-01-25 10:39:14 +00:00
Wayne Davison
018b28328c
No need for conditional code around do_lstat() anymore.
2005-01-19 19:30:29 +00:00
Wayne Davison
4f4b2f0927
The device-handling code is no longer omitted based on HAVE_MKNOD
...
(this is because do_mknod() might be using a different function
to handle fifos and sockets without the help of mknod().
2004-10-01 06:58:23 +00:00
Wayne Davison
29fe3961ab
Output the same backup-message prefix when verbose > 1 regardless of
...
the setting of --backup-dir.
2004-09-20 19:46:45 +00:00
Wayne Davison
fb22c2774d
Got rid of a superfluous static buffer.
2004-09-20 05:01:38 +00:00
Wayne Davison
c94e4afbfa
Moved the code that determines the backup filename into a new function
...
named get_backup_name().
2004-09-07 21:29:26 +00:00
Wayne Davison
f8c8ef9eac
When we say we're skipping a non-regular file, actually skip it.
2004-09-07 19:49:09 +00:00
Wayne Davison
3cb22c204c
Made a comment better.
2004-07-26 05:38:02 +00:00
Wayne Davison
394bcdb5e3
If we sucessfully renamed a file that has multiple links to it, unlink()
...
it to ensure that rename() didn't lie to us (which it does if you try to
rename() a file over another link to the same file).
2004-07-22 22:52:39 +00:00
Wayne Davison
9fd62d1588
The mkdir code should be using do_stat(), not do_lstat() to copy
...
each existing dir's mode & owner info.
2004-06-10 16:43:52 +00:00