Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Makefile: fix shell quoting
[gitweb.git]
/
path.c
diff --git
a/path.c
b/path.c
index 6e3df1849965be6a88fac89c007f9b5fe960f825..c1d567996d225c03f58c1208f4806f74f64e92e1 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)