Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
builtin-clone: rewrite guess_dir_name()
[gitweb.git]
/
path.c
diff --git
a/path.c
b/path.c
index 598325598bba8685d18d24c6331562cdf63fc05f..504eae061fe27e846f67f3e1c25d51e886420b62 100644
(file)
--- a/
path.c
+++ b/
path.c
@@
-272,7
+272,7
@@
int adjust_shared_perm(const char *path)
int tweak = shared_repository;
if (!(mode & S_IWUSR))
tweak &= ~0222;
- mode
= (mode & ~0777) |
tweak;
+ mode
|=
tweak;
} else {
/* Preserve old PERM_UMASK behaviour */
if (mode & S_IWUSR)