aboutsummaryrefslogtreecommitdiff
path: root/path.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2008-03-05 00:15:39 +0100
committerJunio C Hamano <gitster@pobox.com>2008-03-05 12:22:26 -0800
commit81a24b52c164b96d37c8c50799a624e2e8ce8a57 (patch)
tree80f85f976b10ac072049b48b01a9242f2ee86fc8 /path.c
parentce2cf27adc434c11cd1e91bcacf00297efd8cc92 (diff)
downloadgit-81a24b52c164b96d37c8c50799a624e2e8ce8a57.tar.gz
git-81a24b52c164b96d37c8c50799a624e2e8ce8a57.tar.xz
Do not use GUID on dir in git init --shared=all on FreeBSD
It does not allow changing the bit to a non-root user. This fixes t1301-shared-repo.sh on the platform. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'path.c')
-rw-r--r--path.c2
1 files changed, 1 insertions, 1 deletions
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;