On Sun, 7 Oct 2007, Jeff King wrote: > > fd = open(".", O_RDONLY); > chdir(path); > ... > fchdir(fd); fchdir() is not portable. I think it would be better to not chdir() at all. Yes, that means having to prepend the prefix to the names, but that is what git generally does (for that - and other - reasons). Linus - 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