Hi, On Fri, 8 Feb 2008, Junio C Hamano wrote:You mean something like #ifdef FOPEN_OPENS_DIRECTORIES inline static FILE *fopen_compat(const char *path, const char *mode) { struct stat st_buf; if (stat(path, &st_buf) || !S_ISREG(st_buf.st_mode)) return NULL; return (fopen(path, mode)); } #define fopen fopen_compat #endif in git-compat-util.h, right? Yeah, I can see that, even if I think the overhead would not be _that_ crucial. But it is a nice way of fixing _all_ fopen() calls at the same time. Ciao, Dscho - 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
| Greg Kroah-Hartman | [PATCH 004/196] Chinese: add translation of SubmittingPatches |
| James Bottomley | Re: Announce: Linux-next (Or Andrew's dream :-)) |
| David Miller | [GIT]: Networking |
| Antonio Almeida | HTB accuracy for high speed |
| Ingo Molnar | iwlwifi: fix build bug in "iwlwifi: fix LED stall" |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Avi Kivity | Re: [RFC PATCH 14/17] kvm: add a reset capability |
git: | |
