When running env . on most Linux machines, we would see:
$ env .
env: ‘.’: Permission denied
I suspect that on some recent version of termux, the error would be "Is a directory" (EISDIR?!), possibly because of termux LD_PRELOAD intercept?
It appears that execve would require EACCESS to be returned if the file is not a normal file.
If I read 3300bfb correctly, this case is not fixed?
We've had issues related to this in uutils/coreutils: uutils/coreutils#7542 , disabling termux's LD_PRELOAD fixes that issue.