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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]