mercurial/osutil.c
branchstable
changeset 16747 6476a21337a6
parent 15098 edf7ae547b0e
child 18019 e248bff2d8dd
--- a/mercurial/osutil.c	Thu May 17 12:15:30 2012 -0500
+++ b/mercurial/osutil.c	Fri May 18 14:34:33 2012 -0500
@@ -331,6 +331,9 @@
 			err = lstat(fullpath, &st);
 #endif
 			if (err == -1) {
+				/* race with file deletion? */
+				if (errno == ENOENT)
+					continue;
 				strncpy(fullpath + pathlen + 1, ent->d_name,
 					PATH_MAX - pathlen);
 				fullpath[PATH_MAX] = 0;