Subject: [PATCH] fix potential deadlock in create_one_file. It can happen if the temporary file already exists. Signed-off-by: Alex Riesen --- apply.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) f7ac9127638a013d0f1d60e02a06fde10909824c diff --git a/apply.c b/apply.c index d5e7bfd..ff3782b 100644 --- a/apply.c +++ b/apply.c @@ -1635,7 +1635,8 @@ static void create_one_file(const char * } if (errno != EEXIST) break; - } + ++nr; + } } die("unable to write file %s mode %o", path, mode); } -- 1.0.GIT