Re: [PATCH v2] git-compat-util: work around for access(X_OK) under root

2019-04-24 Thread CHIGOT, CLEMENT
> From: Junio C Hamano > "CHIGOT, CLEMENT" writes: > > > On AIX, access(X_OK) may success when run under root even if the > > s/success/succeed/; > > Also perhaps s/under/as/. > > > execution isn't possible. This comes from the POSIX specifications > > s/comes from/behaviour is allowed by/; 

Re: [PATCH v2] git-compat-util: work around for access(X_OK) under root

2019-04-24 Thread Junio C Hamano
"CHIGOT, CLEMENT" writes: > On AIX, access(X_OK) may success when run under root even if the s/success/succeed/; Also perhaps s/under/as/. > execution isn't possible. This comes from the POSIX specifications s/comes from/behaviour is allowed by/; I agree with you that AIX behaviour is subop

[PATCH v2] git-compat-util: work around for access(X_OK) under root

2019-04-24 Thread CHIGOT, CLEMENT
On AIX, access(X_OK) may success when run under root even if the execution isn't possible. This comes from the POSIX specifications which say: "... for a process with appropriate privileges, an implementation may indicate success for X_OK even if execute permission is not granted to any user." T