return -1 if pathname passed to accept is a null-pointer.
unbreaks git with libusb-driver.so preloaded
This commit is contained in:
parent
81cf365889
commit
3eee002c15
@ -890,6 +890,9 @@ int access(const char *pathname, int mode) {
|
|||||||
|
|
||||||
if (!func)
|
if (!func)
|
||||||
func = (int (*) (const char*, int)) dlsym(RTLD_NEXT, "access");
|
func = (int (*) (const char*, int)) dlsym(RTLD_NEXT, "access");
|
||||||
|
|
||||||
|
if (!pathname)
|
||||||
|
return -1;
|
||||||
|
|
||||||
if (!strcmp(pathname, "/dev/windrvr6")) {
|
if (!strcmp(pathname, "/dev/windrvr6")) {
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user