Re: git ls-files -o under .git/ prints all repository files

From: Alex Riesen <raa.lkml@gmail.com>
Date: 2007-01-19 19:02:50
On 1/19/07, Junio C Hamano <junkio@cox.net> 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Fri Jan 19 19:03:33 2007

This archive was generated by hypermail 2.1.8 : 2007-01-19 19:08:16 EST