Marco Nenciarini
ffec7fe109
Fix rrsync directory normalization ( #268 )
...
Fix an off-by-one in the `args.dir_slash_len` variable that leads to base every absolute path on `/`
2021-12-30 08:59:17 -08:00
Wayne Davison
e07f8fb863
Add a default single-access lock.
2021-12-27 17:57:53 -08:00
Wayne Davison
8cf9dbb742
Change args to maybe-make-man.
2021-12-27 17:40:31 -08:00
Wayne Davison
3008e7c226
Include "rrsync" in "all" target when --with-rrsync was used.
2021-12-27 15:52:11 -08:00
Wayne Davison
a2b630c0bb
Unify md parsing scripts & improve non-man html conversions.
2021-12-27 14:24:05 -08:00
Wayne Davison
5b1baa7a2e
Rename md2man.
2021-12-27 13:42:19 -08:00
Wayne Davison
7f8cf771b7
Add more backticks.
2021-12-27 13:11:23 -08:00
Wayne Davison
b00e99c529
Ignore the built rrsync man-page files.
2021-12-27 12:10:31 -08:00
Wayne Davison
a76e32f949
Test --with-rrsync configure option & put rrsync into the artifacts.
2021-12-26 14:58:16 -08:00
Wayne Davison
512acd125e
Use mallinfo2, when available, and use %zd for size_t values on C99.
...
An exhanced version of pull request #265 .
2021-12-26 14:25:53 -08:00
Wayne Davison
72adf49ba8
rrsync improvements
...
- Convert rrsync to python.
- Enhance security of arg & option checking.
- Reject `-L` (`--copy-links`) by default.
- Add `-munge` and `-no-del` options.
- Tweak the logfile line format.
- Created an rrsync man page.
- Use `configure --with-rrsync` if you want `make install` to install
rrsync and its man page.
- Give lsh more rrsync testing support.
2021-12-26 12:29:00 -08:00
Wayne Davison
73ceea6ad2
Convert atomic-rsync to python.
2021-12-20 17:36:33 -08:00
Wayne Davison
39c3ae0ea3
Convert munge-symlinks to python.
2021-12-20 16:41:16 -08:00
Wayne Davison
ed19ea05fe
Make rrsync default to munged symlinks.
2021-12-20 15:16:30 -08:00
Wayne Davison
dc1b9febf1
Add options to assist in localhost rrsync testing.
2021-12-20 15:08:20 -08:00
Wayne Davison
d9015da151
Add --munge-links rsync option; convert to python.
2021-12-20 13:51:50 -08:00
Wayne Davison
1f0e62f139
Improve a couple support scripts:
...
- rsync-no-vanished now avoids joining stdout & stderr, avoids affecting
a non-client run, and gets the rsync status code correctly.
- rsync-slash-strip now avoids affecting a non-client run.
2021-11-13 10:39:09 -08:00
Andrew Aladjev
7d830ff52f
improved cross compilation detection ( #252 )
2021-11-07 11:45:49 -08:00
Issam Maghni
8f383e8987
shell: test -a|o is not POSIX ( #250 )
2021-11-07 10:23:01 -08:00
Wayne Davison
ca538965d8
Add closing backticks that Itzoke pointed out.
2021-11-07 10:11:12 -08:00
Wayne Davison
e4669b81ae
Add the --info=NONREG setting.
2021-11-03 09:35:50 -07:00
Wayne Davison
1b9308b727
More NEWS changes.
2021-10-30 15:58:01 -07:00
Wayne Davison
80c64dc3b3
Fix the ability to read the user's numeric locale.
2021-10-29 20:06:06 -07:00
Wayne Davison
be3d6c0fbb
Update the NEWS.
2021-10-19 21:10:59 -07:00
Wayne Davison
7956070f2b
Make --chown|--usermap|--groupmap imply -o|-g (as appropriate).
2021-10-19 21:10:12 -07:00
Wayne Davison
d0f34b5a76
Allow a "%scope" suffix on the client's ipv6 addr.
...
Hopefully fixes bug #239 .
2021-10-17 13:58:57 -07:00
Achim Leitner
84498104bf
Linux: Handle protected_regular in inplace writes ( #241 )
...
The Linux fs.protected_regular sysctl setting could cause rsync to fail to write a file in-place with the O_CREAT flag set, so the code now tries an open without O_CREAT when it might help to avoid an EACCES error. A testsuite script is included (and slightly improved by Wayne to ensure that it outputs a SKIP when fs.protected_regular is turned off).
2021-10-17 13:00:24 -07:00
Wayne Davison
378a0a634f
Add more skipped verifications. [buildall]
2021-10-17 12:45:45 -07:00
Wayne Davison
ac08fa74f3
Tweak output about skipped tests.
2021-10-17 12:07:03 -07:00
Wayne Davison
d5d4ae51ee
Change RSYNX_MAX_SKIPPED to RSYNC_EXPECT_SKIPPED.
2021-10-17 11:34:07 -07:00
Wayne Davison
0f87eafa2f
A couple minor tweaks.
2021-10-13 10:39:44 -07:00
Wayne Davison
3af00277ee
We need stat memcpy.
2021-10-10 14:01:59 -07:00
Wayne Davison
b774dbc1c0
Improve --omit-dir-times & --omit-link-times
...
The code now better handles skipping time setting on dirs and/or links
when --atimes and/or --crtimes is specified without --times.
2021-10-10 13:39:09 -07:00
Wayne Davison
296352ecb0
Tweak atime/crtime code a bit more.
2021-10-10 12:43:11 -07:00
Wayne Davison
11a9b62322
Avoid spurious warning about "code" var not being initialized.
2021-10-10 10:05:26 -07:00
Wayne Davison
452ef78517
Unify on "path" vs "fname" arg naming.
2021-10-10 09:53:35 -07:00
Wayne Davison
0d1b48893a
Change do_lchmod() back to a swtich with some better ENOTSUP & ENOSYS logic.
2021-10-10 09:32:43 -07:00
Wayne Davison
ec8a05f653
Some packaging improvements.
2021-10-10 09:28:24 -07:00
Wayne Davison
78b5bc6629
Enable --atimes on macOS.
2021-10-02 15:23:30 -07:00
Wayne Davison
f41cdc75a1
Check ro in set_create_time() for Cygwin too.
2021-10-02 11:39:41 -07:00
Wayne Davison
c8e7c4b352
Avoid an issue where the size of st_dev != dev_t.
2021-10-01 14:21:26 -07:00
Wayne Davison
bff084c10a
Always run mkgitver prior to a build
...
Some hosts were not running `mkgitver` when they should, so tweak the
script to only update the timestamp when the file's data changes and
then always run the script when performing a build.
2021-10-01 14:17:53 -07:00
Wayne Davison
16c8b05f11
Add more NEWS updates.
2021-10-01 13:40:07 -07:00
Wayne Davison
15dd2058fd
Change do_chmod to always try lchmod() first (when possible).
2021-10-01 13:28:57 -07:00
Wayne Davison
c27180c044
Add a couple more options to rrsync.
2021-10-01 13:24:51 -07:00
Wayne Davison
050fdd4126
Allow the script to be run from inside the packaging dir.
2021-10-01 13:23:30 -07:00
Jindřich Makovička
ae1f002999
Reduce memory usage ( #235 )
...
In 2004, an allocation optimization has been added to the file
list handling code, that preallocates 32k of file_struct pointers
in a file_list. This optimization predates the incremental
recursion feature, for which it is not appropriate anymore. When
copying a tree containing a large number of small directories,
using the incremental recursion, rsync allocates many short
file_lists. Suddenly, the unused file_struct pointers can easily
take 90-95% of the memory allocated by rsync.
2021-10-01 12:04:59 -07:00
Wayne Davison
3911c23866
Tweak SIMD & ASM option defaults.
2021-09-27 11:09:43 -07:00
Wayne Davison
3814dbb0f4
Make cygwin's curl grab the gist file. [buildall]
2021-09-27 10:34:22 -07:00
Wayne Davison
82f023d7e3
Add --fsync option (promoted from patches).
2021-09-27 10:30:00 -07:00