For such an executable valgrind will now report:
valgrind: Cannot continue: Need read permission on /usr/local/bin/exec-no-read
https://bugs.kde.org/show_bug.cgi?id=281059
are not entered into bugzilla tend to get forgotten about or ignored.
+281059 Cannot connect to Oracle using valgrind
390269 unhandled amd64-darwin syscall: unix:464 (openat_nocancel)
401284 False positive "Source and destination overlap in strncat"
428364 Signals inside io_uring_enter not handled
if (access(fullname, R_OK|X_OK) == 0)
return fullname;
+ else if (access(fullname, X_OK) == 0)
+ barf("Need read permission on %s", fullname);
}
free(fullname);