]> git.proxmox.com Git - libgit2.git/commit
GIT_MODE_TYPE should exclude setgid bits
authorRussell Belfer <rb@github.com>
Thu, 5 Sep 2013 19:01:17 +0000 (12:01 -0700)
committerRussell Belfer <rb@github.com>
Thu, 5 Sep 2013 19:01:17 +0000 (12:01 -0700)
commitaf22dabb4366f8b2dd4acd5725a25e88842d6938
tree91221d88877c7ca73d0373f6d42def58f21397db
parentc97d407d9cc54fc99af0a57e09e04e9e0bc68cb6
GIT_MODE_TYPE should exclude setgid bits

The GIT_MODE_TYPE macro was looking at all bits above the
permissions, but it should really just look at the top bits so
that it will give the right results for a setgid or setuid entry.

Since we're now using these macros in the tests, this was causing
a test failure on platforms that don't support setgid.
src/fileops.h
tests-clar/repo/init.c