From 7f2c7aa91df7c0aa619631f7393014b3b022197f Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 9 May 2010 13:28:34 +0200 Subject: [PATCH] Include hostname in temporary file name to avoid NFS race --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index e10e1ca9c..030deee98 100644 --- a/util.c +++ b/util.c @@ -124,7 +124,7 @@ int copy_file(const char *src, const char *dest, int compress_dest) mode_t mask; struct stat st; - x_asprintf(&tmp_name, "%s.XXXXXX", dest); + x_asprintf(&tmp_name, "%s.%s.XXXXXX", dest, tmp_string()); /* open source file */ fd_in = open(src, O_RDONLY); -- 2.47.2