diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-05-13 23:50:35 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-05-13 23:50:35 +0900 |
commit | 40bef4992ea86b79fa80ebd7e6fd19fecdc5879b (patch) | |
tree | ef0cb96e86ee1f50cc1d88d65253af1b74c5b77c /Makefile | |
parent | Merge branch 'pw/clean-sequencer-state-upon-final-commit' (diff) | |
parent | git-compat-util: work around for access(X_OK) under root (diff) | |
download | tgif-40bef4992ea86b79fa80ebd7e6fd19fecdc5879b.tar.xz |
Merge branch 'cc/access-on-aix-workaround'
Workaround for standard-compliant but less-than-useful behaviour of
access(2) for the root user.
* cc/access-on-aix-workaround:
git-compat-util: work around for access(X_OK) under root
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -439,6 +439,9 @@ all:: # # Define FILENO_IS_A_MACRO if fileno() is a macro, not a real function. # +# Define NEED_ACCESS_ROOT_HANDLER if access() under root may success for X_OK +# even if execution permission isn't granted for any user. +# # Define PAGER_ENV to a SP separated VAR=VAL pairs to define # default environment variables to be passed when a pager is spawned, e.g. # @@ -1833,6 +1836,11 @@ ifdef FILENO_IS_A_MACRO COMPAT_OBJS += compat/fileno.o endif +ifdef NEED_ACCESS_ROOT_HANDLER + COMPAT_CFLAGS += -DNEED_ACCESS_ROOT_HANDLER + COMPAT_OBJS += compat/access.o +endif + ifeq ($(TCLTK_PATH),) NO_TCLTK = NoThanks endif |