Thread (3 messages) flat view 3 messages, 3 authors, 2016-06-15

Re: [PATCH] Prevent git-upload-pack segfault if object cannot be found

From: Jonas Fonseca <hidden>
Date: 2016-06-15 22:42:20

Possibly related (same subject, not in this thread)

Junio C Hamano [off-list ref] wrote Wed, Feb 22, 2006:
quoted hunk ↗ jump to hunk
@@ -552,7 +563,9 @@ static void prepare_packed_git_one(char 
 	len = strlen(path);
 	dir = opendir(path);
 	if (!dir) {
-		fprintf(stderr, "unable to open object pack directory: %s: %s\n", path, strerror(errno));
+		if (errno != ENOENT)
+			error("unable to open object pack directory: %s: %s\n",
+			      path, strerror(errno));
No need for the ending \n.

-- 
Jonas Fonseca
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help