emulate access function, too. now even the device node /dev/windrvr6 is
no longer needed
This commit is contained in:
parent
90831fba7f
commit
419f2c983b
13
usb-driver.c
13
usb-driver.c
@ -719,4 +719,17 @@ int fclose(FILE *fp) {
|
|||||||
|
|
||||||
return (*func)(fp);
|
return (*func)(fp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int access(const char *pathname, int mode) {
|
||||||
|
static int (*func) (const char*, int);
|
||||||
|
|
||||||
|
if (!func)
|
||||||
|
func = (int (*) (const char*, int)) dlsym(REAL_LIBC, "access");
|
||||||
|
|
||||||
|
if (!strcmp(pathname, "/dev/windrvr6")) {
|
||||||
|
return 0;
|
||||||
|
} else {
|
||||||
|
return (*func)(pathname, mode);
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user