On 1/19/07, Junio C Hamano <junkio@xxxxxxx> wrote:
static void safe_create_dir(const char *dir, int share) { - if (mkdir(dir, 0777) < 0) { + mode_t mode; + + mode = share ? 0777 : 0333; + if (mkdir(dir, mode) < 0) {
Does not work for existing directories, does not work on FAT and alike at all. - 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