From 34e59bae46e2f889862d320cddfab336aa89637e Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Thu, 5 Jun 2008 13:31:23 +0200 Subject: [PATCH] We shouldn't follow symlinks and don't change the access time. This gives a small speedup of the read command. --- src/csync_propagate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/csync_propagate.c b/src/csync_propagate.c index 7abc8fddfa..d76cf945cc 100644 --- a/src/csync_propagate.c +++ b/src/csync_propagate.c @@ -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;