Hi, On Wed, 1 Nov 2006, Junio C Hamano wrote: > - if (chmod(path, mode) < 0) > + if (mode != st.st_mode && chmod(path, mode) < 0) Oops. Somehow I missed this mail before replying. I'd like to point out that it's safer to check for (mode & st.st_mode != mode), since we should leave broader permissions as are. Ciao, Dscho - 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