From 42b090ec0df990abc1df8341d5e41a26eab4a301 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Mon, 10 Dec 2012 19:07:52 +0100 Subject: [PATCH] Propagate: Change temp file name .. to something already in the exclude list --- 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 9fce3f7674..d1699e84bd 100644 --- a/src/csync_propagate.c +++ b/src/csync_propagate.c @@ -189,7 +189,7 @@ static int _csync_push_file(CSYNC *ctx, csync_file_stat_t *st) { if (_push_to_tmp_first(ctx)) { /* create the temporary file name */ - if (asprintf(&turi, "%s.XXXXXX", duri) < 0) { + if (asprintf(&turi, "%s.~XXXXXX", duri) < 0) { rc = -1; goto out; }