We shouldn't follow symlinks and don't change the access time.

This gives a small speedup of the read command.
This commit is contained in:
Andreas Schneider 2008-06-05 13:31:23 +02:00
parent e5180d19d4
commit 34e59bae46

View File

@ -99,7 +99,7 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) {
/* Open the source file */
ctx->replica = srep;
sfp = csync_vio_open(ctx, suri, O_RDONLY, 0);
sfp = csync_vio_open(ctx, suri, O_RDONLY|O_NOFOLLOW|O_NOATIME, 0);
if (sfp == NULL) {
if (errno == ENOMEM) {
rc = -1;