1. Stefan Saasen
  2. git


Alex Riesen  committed d9e08be

fix potential deadlock in create_one_file

It can happen if the temporary file already exists (i.e. after a panic
and reboot).

Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>

  • Participants
  • Parent commits 781411e
  • Branches master

Comments (0)

Files changed (1)

File apply.c

View file
 			if (errno != EEXIST)
-		}			
+			++nr;
+		}
 	die("unable to write file %s mode %o", path, mode);