Disable atimes on macOS.

This commit is contained in:
Wayne Davison committed 2020-06-21 15:16:56 -07:00
1 parent e16b22751a
commit 2b439c1fc8
3 files changed
+14 -2

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ Protocol: 31 (unchanged)
- Fix an issue with the md2man code when building in an external dir.
- Make sure "early exec" gets no stdin.
- Disable --atimes on macOS (it apparently doesn't work).
### ENHANCEMENTS:
+11 -1
View File
@@ -188,6 +188,10 @@ const char **remote_options = NULL;
const char *checksum_choice = NULL;
const char *compress_choice = NULL;
#ifndef __APPLE__ /* Do we need a configure check for this? */
#define SUPPORT_ATIMES 1
#endif
int quiet = 0;
int output_motd = 1;
int log_before_transfer = 0;
@@ -604,7 +608,10 @@ static void print_capabilities(enum logcode f)
#endif
"IPv6",
"atimes",
#ifndef SUPPORT_ATIMES
"no "
#endif
"atimes",
"batchfiles",
@@ -1179,6 +1186,9 @@ static void set_refuse_options(void)
parse_one_refuse_match(0, "log-file*", list_end);
}
#ifndef SUPPORT_ATIMES
parse_one_refuse_match(0, "atimes", list_end);
#endif
#ifndef SUPPORT_HARD_LINKS
parse_one_refuse_match(0, "link-dest", list_end);
#endif
+2
View File
@@ -4,6 +4,8 @@
. "$suitedir/rsync.fns"
$RSYNC --version | grep "[, ] atimes" >/dev/null || test_skipped "Rsync is configured without atimes support"
mkdir "$fromdir"
touch "$fromdir/foo"