1
0

return -1 if pathname passed to accept is a null-pointer.

unbreaks git with libusb-driver.so preloaded
This commit is contained in:
Michael Gernoth 2007-05-17 19:21:59 +02:00
parent 81cf365889
commit 3eee002c15

View File

@ -890,6 +890,9 @@ int access(const char *pathname, int mode) {
if (!func)
func = (int (*) (const char*, int)) dlsym(RTLD_NEXT, "access");
if (!pathname)
return -1;
if (!strcmp(pathname, "/dev/windrvr6")) {
return 0;