From: Junio C Hamano Date: Wed, 22 Feb 2006 18:50:05 GMT Subject: Re: [PATCH] Prevent git-upload-pack segfault if object cannot be found Message-ID: <7vy803mdnm.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <87bqwzs07h.wl%cworth@cworth.org> I have this in mind... --- diff --git a/sha1_file.c b/sha1_file.c index f08b1d6..dae77fc 100644 --- a/sha1_file.c +++ b/sha1_file.c @@ -552,7 +552,8 @@ 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) + fprintf(stderr, "unable to open object pack directory: %s: %s\n", path, strerror(errno)); return; } path[len++] = '/';