Junio C Hamano wrote: > And have Makefile set FOPEN_OPENS_DIRECTORIES on appropriate > platforms. Which ones _don't_ open directories? Shouldn't fopen("path_to_some_directory", "r") work? -brandon #include <stdio.h> int main(int argc, char* argv[]) { if (!fopen(argv[1], "r")) { perror("File open failed"); return 1; } puts("File open succeeded."); return 0; } - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html