X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=setup.c;h=ebd60de9ce5b52f348819a6a390c15b8dc08d2ff;hb=f92f2038a5192ac5fc1bb4f38c49906aa45b3f1e;hp=6c2deda18492acb5a8597563d6843f9d0dd232c0;hpb=1e7ef0253c91bf2f25f9d8e44795b642737e664e;p=git.git diff --git a/setup.c b/setup.c index 6c2deda18..ebd60de9c 100644 --- a/setup.c +++ b/setup.c @@ -434,7 +434,7 @@ int git_config_perm(const char *var, const char *value) /* * Treat values 0, 1 and 2 as compatibility cases, otherwise it is - * a chmod value. + * a chmod value to restrict to. */ switch (i) { case PERM_UMASK: /* 0 */ @@ -456,7 +456,7 @@ int git_config_perm(const char *var, const char *value) * Mask filemode value. Others can not get write permission. * x flags for directories are handled separately. */ - return i & 0666; + return -(i & 0666); } int check_repository_format_version(const char *var, const char *value, void *cb)