X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=path.c;h=f4ed979997b6a968ba1987a199beae39035d5da2;hb=1eaa541f5fbda3fc30085da4f75e99dfae4ec9b3;hp=af2716199b92e920df9fe2021035d319e8cafbc6;hpb=c0b48ad777eb8ad42d8d0eafc8f0ee82955b1319;p=git.git diff --git a/path.c b/path.c index af2716199..f4ed97999 100644 --- a/path.c +++ b/path.c @@ -283,7 +283,7 @@ int adjust_shared_perm(const char *path) ? (S_IXGRP|S_IXOTH) : 0)); if (S_ISDIR(mode)) - mode |= S_ISGID; + mode |= FORCE_DIR_SET_GID; if ((mode & st.st_mode) != mode && chmod(path, mode) < 0) return -2; return 0;