From: Linus Torvalds Date: Mon, 08 Oct 2007 02:17:50 GMT Subject: Re: [PATCH] Make git-clean a builtin Message-ID: In-Reply-To: <20071008020435.GA20050@coredump.intra.peff.net> 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