Re: read_branches_file ()

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H.Merijn Brand <h.m.brand@...>
Cc: <git@...>
Date: Monday, February 11, 2008 - 6:00 am

H.Merijn Brand wrote:

Shouldn't this be
	if (stat(gp, &st_buf) || !S_ISREG(st_buf.st_mode))

?

Otherwise, you might end up opening a FIFO, a socket or a
block/char special, which is obviously undesired.

-- 
Andreas Ericsson                   andreas.ericsson@op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
read_branches_file (), H.Merijn Brand, (Fri Feb 8, 11:50 am)
Re: read_branches_file (), Daniel Barkalow, (Fri Feb 8, 1:18 pm)
Re: read_branches_file (), H.Merijn Brand, (Fri Feb 8, 12:03 pm)
Re: read_branches_file (), Andreas Ericsson, (Mon Feb 11, 6:00 am)
Re: read_branches_file (), H.Merijn Brand, (Mon Feb 11, 6:17 am)
Re: read_branches_file (), Johannes Schindelin, (Fri Feb 8, 12:22 pm)
Re: read_branches_file (), H.Merijn Brand, (Fri Feb 8, 12:49 pm)